taler-typescript-core

Wallet core logic and WebUIs for various components
Log | Files | Refs | Submodules | README | LICENSE

commit c1cd411d900be873473248df54c6cbada09bdccd
parent 02ceacd75fa16889925c8eda6b28f181b2ad392c
Author: Iván Ávalos <avalos@disroot.org>
Date:   Tue, 28 May 2024 10:52:11 -0600

anastasis: fix http error response handling

Diffstat:
Mpackages/anastasis-core/src/index.ts | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/packages/anastasis-core/src/index.ts b/packages/anastasis-core/src/index.ts @@ -298,7 +298,7 @@ async function getProviderInfo( hint: "request to anastasis provider failed", }; } - if (resp.status < 200 && resp.status >= 300) { + if (resp.status < 200 || resp.status > 299) { console.warn("Got bad response code whilst getting provider config", resp); return { status: "error",