summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-01-07 20:58:21 +0100
committerChristian Grothoff <christian@grothoff.org>2021-01-07 20:58:21 +0100
commit64667c6f86b9a52957453bf173ff9dc866529240 (patch)
tree5f85580bd70de1d53d4d035d62f3748c89dc2d7b /src/lib
parentb8c889d9b3f0c8cd9db7254802e34468f2aa5b2e (diff)
downloadmerchant-64667c6f86b9a52957453bf173ff9dc866529240.tar.gz
merchant-64667c6f86b9a52957453bf173ff9dc866529240.tar.bz2
merchant-64667c6f86b9a52957453bf173ff9dc866529240.zip
fix #6677
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/merchant_api_post_order_abort.c14
-rw-r--r--src/lib/merchant_api_post_order_pay.c14
2 files changed, 14 insertions, 14 deletions
diff --git a/src/lib/merchant_api_post_order_abort.c b/src/lib/merchant_api_post_order_abort.c
index 4e8a508e..f8cdaab4 100644
--- a/src/lib/merchant_api_post_order_abort.c
+++ b/src/lib/merchant_api_post_order_abort.c
@@ -287,19 +287,19 @@ handle_abort_finished (void *cls,
hr.ec = TALER_JSON_get_error_code (json);
hr.hint = TALER_JSON_get_error_hint (json);
break;
- case MHD_HTTP_FAILED_DEPENDENCY:
- TALER_MERCHANT_parse_error_details_ (json,
- response_code,
- &hr);
- /* Nothing really to verify, the merchant is blaming the exchange.
- We should pass the JSON reply to the application */
- break;
case MHD_HTTP_INTERNAL_SERVER_ERROR:
hr.ec = TALER_JSON_get_error_code (json);
hr.hint = TALER_JSON_get_error_hint (json);
/* Server had an internal issue; we should retry,
but this API leaves this to the application */
break;
+ case MHD_HTTP_BAD_GATEWAY:
+ TALER_MERCHANT_parse_error_details_ (json,
+ response_code,
+ &hr);
+ /* Nothing really to verify, the merchant is blaming the exchange.
+ We should pass the JSON reply to the application */
+ break;
default:
/* unexpected response code */
TALER_MERCHANT_parse_error_details_ (json,
diff --git a/src/lib/merchant_api_post_order_pay.c b/src/lib/merchant_api_post_order_pay.c
index 1088074c..28e9f6ed 100644
--- a/src/lib/merchant_api_post_order_pay.c
+++ b/src/lib/merchant_api_post_order_pay.c
@@ -367,19 +367,19 @@ handle_pay_finished (void *cls,
denomination key of a coin involved has expired.
Might be a disagreement in timestamps? Still, pass on to application. */
break;
- case MHD_HTTP_FAILED_DEPENDENCY:
- TALER_MERCHANT_parse_error_details_ (json,
- response_code,
- &hr);
- /* Nothing really to verify, the merchant is blaming the exchange.
- We should pass the JSON reply to the application */
- break;
case MHD_HTTP_INTERNAL_SERVER_ERROR:
hr.ec = TALER_JSON_get_error_code (json);
hr.hint = TALER_JSON_get_error_hint (json);
/* Server had an internal issue; we should retry,
but this API leaves this to the application */
break;
+ case MHD_HTTP_BAD_GATEWAY:
+ /* Nothing really to verify, the merchant is blaming the exchange.
+ We should pass the JSON reply to the application */
+ TALER_MERCHANT_parse_error_details_ (json,
+ response_code,
+ &hr);
+ break;
case MHD_HTTP_SERVICE_UNAVAILABLE:
TALER_MERCHANT_parse_error_details_ (json,
response_code,