exchange

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

commit 6763d3ee0c1433c975c174b5041313b15185de37
parent 09ad1c3068872a5bd935cb3078ad7fdb3893ce09
Author: Christian Grothoff <grothoff@gnunet.org>
Date:   Fri, 30 Jan 2026 08:06:04 +0100

fix #10947

Diffstat:
Msrc/exchange/taler-exchange-httpd_aml-attributes-get.c | 16+++++++++-------
1 file changed, 9 insertions(+), 7 deletions(-)

diff --git a/src/exchange/taler-exchange-httpd_aml-attributes-get.c b/src/exchange/taler-exchange-httpd_aml-attributes-get.c @@ -658,7 +658,7 @@ TEH_handler_aml_attributes_get ( json_object_set_new (rctx->details.pdf.global_attrs, "FILE_NUMBER", json_integer (file_number))); - /* Kookup latest AML decision & account rules & properties + /* Lookup latest AML decision & account rules & properties to build the cover page */ qs = TEH_plugin->lookup_aml_history (TEH_plugin->cls, &h_payto, @@ -734,12 +734,14 @@ TEH_handler_aml_attributes_get ( TALER_EC_GENERIC_DB_FETCH_FAILED, "select_aml_attributes"); case GNUNET_DB_STATUS_SUCCESS_NO_RESULTS: - return TALER_MHD_reply_static ( - rc->connection, - MHD_HTTP_NO_CONTENT, - NULL, - NULL, - 0); + if (RCF_JSON == rctx->format) + return TALER_MHD_reply_static ( + rc->connection, + MHD_HTTP_NO_CONTENT, + NULL, + NULL, + 0); + break; case GNUNET_DB_STATUS_SUCCESS_ONE_RESULT: break; }