From a24171d0fadbed579985e0267670ce524a1a5ab8 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 9 Jul 2015 12:47:49 +0200 Subject: fix mint to actually include signature in deposit error reply --- src/mint/taler-mint-httpd_responses.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mint/taler-mint-httpd_responses.c') diff --git a/src/mint/taler-mint-httpd_responses.c b/src/mint/taler-mint-httpd_responses.c index b5e3ea5c..bbf35b8b 100644 --- a/src/mint/taler-mint-httpd_responses.c +++ b/src/mint/taler-mint-httpd_responses.c @@ -451,7 +451,7 @@ compile_transaction_history (const struct TALER_MINTDB_TransactionList *tl) GNUNET_assert (0); } json_array_append_new (history, - json_pack ("{s:s, s:o}", + json_pack ("{s:s, s:o, s:o}", "type", type, "amount", TALER_json_from_amount (&value), "signature", transaction)); @@ -477,7 +477,7 @@ TMH_RESPONSE_reply_deposit_insufficient_funds (struct MHD_Connection *connection history = compile_transaction_history (tl); return TMH_RESPONSE_reply_json_pack (connection, - MHD_HTTP_PRECONDITION_FAILED, + MHD_HTTP_FORBIDDEN, "{s:s, s:o}", "error", "insufficient funds", "history", history); -- cgit v1.2.3