commit 606d95ba96d70c6af3c9104b655a19bb719b3306
parent 01f40a7e1a7471ac0f3ba38fadd935e656172b96
Author: Iván Ávalos <avalos@disroot.org>
Date: Wed, 31 Jul 2024 10:06:20 -0600
[wallet] send non-200 responses to wallet-core
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/wallet/src/main/java/net/taler/wallet/backend/NetworkInterface.kt b/wallet/src/main/java/net/taler/wallet/backend/NetworkInterface.kt
@@ -18,6 +18,7 @@ package net.taler.wallet.backend
import android.util.Log
import io.ktor.client.call.body
+import io.ktor.client.plugins.ClientRequestException
import io.ktor.client.plugins.ResponseException
import io.ktor.client.request.header
import io.ktor.client.request.headers
@@ -74,8 +75,7 @@ class NetworkInterface: Networking.RequestHandler {
}
}
} catch (e: ResponseException) {
- Log.d(TAG, "Exception handling HTTP response", e)
- null
+ e.response // send non-200 responses to wallet-core anyway
} catch (e: IOException) {
Log.d(TAG, "Exception handling HTTP response", e)
null