summaryrefslogtreecommitdiff
path: root/src/lib/merchant_api_merchant_get_order.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-08-11 23:35:57 +0200
committerChristian Grothoff <christian@grothoff.org>2022-08-11 23:35:57 +0200
commit1b751d3f8c6bb7efd9b4acd54b4a1bf5266043bf (patch)
tree8855c2d979f8f273254d8e593cf364c19c73a9f3 /src/lib/merchant_api_merchant_get_order.c
parent7aec7a252f2ac6ae677b9fa48c831963ab719582 (diff)
downloadmerchant-1b751d3f8c6bb7efd9b4acd54b4a1bf5266043bf.tar.gz
merchant-1b751d3f8c6bb7efd9b4acd54b4a1bf5266043bf.tar.bz2
merchant-1b751d3f8c6bb7efd9b4acd54b4a1bf5266043bf.zip
-fix handling of serialization failure
Diffstat (limited to 'src/lib/merchant_api_merchant_get_order.c')
-rw-r--r--src/lib/merchant_api_merchant_get_order.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/merchant_api_merchant_get_order.c b/src/lib/merchant_api_merchant_get_order.c
index f3181a3c..0e6b53bf 100644
--- a/src/lib/merchant_api_merchant_get_order.c
+++ b/src/lib/merchant_api_merchant_get_order.c
@@ -378,6 +378,12 @@ handle_merchant_order_get_finished (void *cls,
case MHD_HTTP_OK:
/* see below */
break;
+ case MHD_HTTP_ACCEPTED:
+ /* see below */
+ omgh->cb (omgh->cb_cls,
+ &osr);
+ TALER_MERCHANT_merchant_order_get_cancel (omgh);
+ return;
case MHD_HTTP_UNAUTHORIZED:
osr.hr.ec = TALER_JSON_get_error_code (json);
osr.hr.hint = TALER_JSON_get_error_hint (json);