exchange

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

commit 3fe81205d8483ca87bb0ab84b10f8b9125278ddf
parent a04da78d3ec223e9785f7a6e82367f0cd41bce1e
Author: Florian Dold <florian@dold.me>
Date:   Thu, 16 Jan 2025 15:44:22 +0100

fakebank: return body on account creation as per specification

Diffstat:
Msrc/bank-lib/fakebank_bank_testing_register.c | 10+++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/bank-lib/fakebank_bank_testing_register.c b/src/bank-lib/fakebank_bank_testing_register.c @@ -117,11 +117,11 @@ TALER_FAKEBANK_bank_testing_register_ ( acc->password = GNUNET_strdup (password); acc->balance = h->signup_bonus; /* magic money creation! */ } - res = TALER_MHD_reply_static (connection, - MHD_HTTP_NO_CONTENT, - NULL, - NULL, - 0); + res = TALER_MHD_REPLY_JSON_PACK ( + connection, + MHD_HTTP_OK, + GNUNET_JSON_pack_string ("internal_payto_uri", + acc->payto_uri)); } json_decref (json); return res;