[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-merchant] branch master updated: fix broken JSON packing, fix con
From: |
gnunet |
Subject: |
[taler-merchant] branch master updated: fix broken JSON packing, fix condition for order status 'gone' |
Date: |
Tue, 11 Aug 2020 17:17:46 +0200 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository merchant.
The following commit(s) were added to refs/heads/master by this push:
new 89a9423 fix broken JSON packing, fix condition for order status 'gone'
89a9423 is described below
commit 89a9423ab2020b9278808d7cdac97bd0d4635285
Author: Florian Dold <florian.dold@gmail.com>
AuthorDate: Tue Aug 11 20:47:40 2020 +0530
fix broken JSON packing, fix condition for order status 'gone'
---
src/backend/taler-merchant-httpd_get-orders-ID.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/backend/taler-merchant-httpd_get-orders-ID.c
b/src/backend/taler-merchant-httpd_get-orders-ID.c
index d60b158..5e399b9 100644
--- a/src/backend/taler-merchant-httpd_get-orders-ID.c
+++ b/src/backend/taler-merchant-httpd_get-orders-ID.c
@@ -1099,9 +1099,9 @@ TMH_get_orders_ID (const struct TMH_RequestHandler *rh,
GNUNET_memcmp (&h,
&god->h_contract_terms))
{
- if (0 == GNUNET_is_zero (&god->claim_token))
+ if (0 == GNUNET_is_zero (&god->h_contract_terms))
{
- /* The client did not provide any claim token, just a wrong
h_contract */
+ /* The client provided a h_contract that's wrong, so complain! */
GNUNET_break_op (0);
return TALER_MHD_reply_with_error (connection,
MHD_HTTP_FORBIDDEN,
@@ -1195,6 +1195,7 @@ TMH_get_orders_ID (const struct TMH_RequestHandler *rh,
else
return TALER_MHD_reply_json_pack (connection,
MHD_HTTP_GONE,
+ "{s:s}",
"fulfillment_url",
god->fulfillment_url);
}
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-merchant] branch master updated: fix broken JSON packing, fix condition for order status 'gone',
gnunet <=