commit d5c088b17c6e35ac5814bf2fbb0dec3262304b7c
parent 4513cde0df916550c5c6f40d272eb370778f18f3
Author: Christian Grothoff <christian@grothoff.org>
Date: Mon, 19 Dec 2022 14:51:10 +0100
-fix response code being reported incorrectly
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/bank-lib/bank_api_credit.c b/src/bank-lib/bank_api_credit.c
@@ -155,7 +155,7 @@ handle_credit_history_finished (void *cls,
{
struct TALER_BANK_CreditHistoryHandle *hh = cls;
struct TALER_BANK_CreditHistoryResponse chr = {
- .http_status = MHD_HTTP_OK,
+ .http_status = response_code,
.response = response
};
diff --git a/src/bank-lib/bank_api_debit.c b/src/bank-lib/bank_api_debit.c
@@ -157,7 +157,7 @@ handle_debit_history_finished (void *cls,
{
struct TALER_BANK_DebitHistoryHandle *hh = cls;
struct TALER_BANK_DebitHistoryResponse dhr = {
- .http_status = MHD_HTTP_OK,
+ .http_status = response_code,
.response = response
};