diff options
author | Christian Grothoff <christian@grothoff.org> | 2021-08-01 16:07:26 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2021-08-01 16:07:26 +0200 |
commit | 589efd719a711751a1828ddea0e5d5e269ec0caa (patch) | |
tree | a4da09608877c6c2ed19d11779112523de315e5c /src/backend/taler-merchant-httpd_config.c | |
parent | cdde19794f49b5b022b0987b1d99edc7910f4d00 (diff) |
-misc fixes, more json_pack converting
Diffstat (limited to 'src/backend/taler-merchant-httpd_config.c')
-rw-r--r-- | src/backend/taler-merchant-httpd_config.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/backend/taler-merchant-httpd_config.c b/src/backend/taler-merchant-httpd_config.c index a4d6d0f8..7685619d 100644 --- a/src/backend/taler-merchant-httpd_config.c +++ b/src/backend/taler-merchant-httpd_config.c @@ -1,6 +1,6 @@ /* This file is part of TALER - (C) 2019, 2020 Taler Systems SA + (C) 2019, 2020, 2021 Taler Systems SA TALER is free software; you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software @@ -55,10 +55,13 @@ MH_handler_config (struct TMH_RequestHandler *rh, (void) hc; if (NULL == response) { - response = TALER_MHD_make_json_pack ("{s:s, s:s, s:s}", - "currency", TMH_currency, - "name", "taler-merchant", - "version", MERCHANT_PROTOCOL_VERSION); + response = TALER_MHD_MAKE_JSON_PACK ( + GNUNET_JSON_pack_string ("currency", + TMH_currency), + GNUNET_JSON_pack_string ("name", + "taler-merchant"), + GNUNET_JSON_pack_string ("version", + MERCHANT_PROTOCOL_VERSION)); } return MHD_queue_response (connection, MHD_HTTP_OK, |