exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

commit fcbf2444a0fbd3b9283c61063ad97f2c6d870d82
parent d20b83972e8386a8f4b0cee161685fa6e575c6c3
Author: Florian Dold <florian@dold.me>
Date:   Tue,  4 Feb 2025 23:16:02 +0100

kyc-upload: missing GNUNET_break; do not add CORS header twice

Diffstat:
Msrc/exchange/taler-exchange-httpd_kyc-upload.c | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/exchange/taler-exchange-httpd_kyc-upload.c b/src/exchange/taler-exchange-httpd_kyc-upload.c @@ -351,7 +351,10 @@ aml_trigger_callback ( { uc->response_code = TALER_ErrorCode_get_http_status (ec); if (0 == uc->response_code) + { + GNUNET_break (0); uc->response_code = MHD_HTTP_INTERNAL_SERVER_ERROR; + } GNUNET_assert (uc->response_code != UINT_MAX); uc->response = TALER_MHD_make_error ( ec, @@ -364,8 +367,8 @@ aml_trigger_callback ( 0, "" ); + TALER_MHD_add_global_headers (uc->response); } - TALER_MHD_add_global_headers (uc->response); MHD_resume_connection (uc->rc->connection); GNUNET_CONTAINER_DLL_remove (uc_head,