From d5c088b17c6e35ac5814bf2fbb0dec3262304b7c Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 19 Dec 2022 14:51:10 +0100 Subject: [PATCH] -fix response code being reported incorrectly --- src/bank-lib/bank_api_credit.c | 2 +- src/bank-lib/bank_api_debit.c | 2 +- 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 index cc5e66879..9835a8c9d 100644 --- 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 index 872443209..bd9b11941 100644 --- 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 };