summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-05-19 15:14:12 +0200
committerChristian Grothoff <christian@grothoff.org>2021-05-19 15:14:12 +0200
commit8c0719db1f153106ea69a7224694f4a39394707a (patch)
tree32adefda8fa1327929f17d390332778e62d110e2 /src/lib
parent83afcc2e6ab7e4be1b62614445087e4df22b83f7 (diff)
downloadmerchant-8c0719db1f153106ea69a7224694f4a39394707a.tar.gz
merchant-8c0719db1f153106ea69a7224694f4a39394707a.tar.bz2
merchant-8c0719db1f153106ea69a7224694f4a39394707a.zip
add test for #6876, and minor fixes
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/merchant_api_post_transfers.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/merchant_api_post_transfers.c b/src/lib/merchant_api_post_transfers.c
index e78cb36d..3a775b90 100644
--- a/src/lib/merchant_api_post_transfers.c
+++ b/src/lib/merchant_api_post_transfers.c
@@ -209,6 +209,12 @@ handle_post_transfers_finished (void *cls,
hr.ec = TALER_JSON_get_error_code (json);
hr.hint = TALER_JSON_get_error_hint (json);
break;
+ case MHD_HTTP_GATEWAY_TIMEOUT:
+ /* Server had an internal issue; we should retry, but this API
+ leaves this to the application */
+ hr.ec = TALER_JSON_get_error_code (json);
+ hr.hint = TALER_JSON_get_error_hint (json);
+ break;
default:
/* unexpected response code */
GNUNET_break_op (0);