aboutsummaryrefslogtreecommitdiff
path: root/src/mint
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-07-09 12:47:49 +0200
committerChristian Grothoff <christian@grothoff.org>2015-07-09 12:47:49 +0200
commita24171d0fadbed579985e0267670ce524a1a5ab8 (patch)
treee2d70c12753886f7f9de48f65579b5305b1ed50f /src/mint
parent8b91516fc37ddb5883c4fff59d84d5c245a7afa7 (diff)
downloadexchange-a24171d0fadbed579985e0267670ce524a1a5ab8.tar.xz
fix mint to actually include signature in deposit error reply
Diffstat (limited to 'src/mint')
-rw-r--r--src/mint/taler-mint-httpd_responses.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mint/taler-mint-httpd_responses.c b/src/mint/taler-mint-httpd_responses.c
index b5e3ea5c2..bbf35b8bd 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);