summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-02-04 20:04:51 +0100
committerChristian Grothoff <christian@grothoff.org>2021-02-04 20:04:51 +0100
commit6ce9acfa72c8f5b173c724d0514b44332d0330da (patch)
tree6d64f62e790f1f74b9bf9c3ba8337f531ffa0293
parent00c02568ebbd2ea126d76e1859ba02fc66941123 (diff)
downloadmerchant-6ce9acfa72c8f5b173c724d0514b44332d0330da.tar.gz
merchant-6ce9acfa72c8f5b173c724d0514b44332d0330da.tar.bz2
merchant-6ce9acfa72c8f5b173c724d0514b44332d0330da.zip
fix #6738
-rw-r--r--src/backend/taler-merchant-httpd_post-orders-ID-abort.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/backend/taler-merchant-httpd_post-orders-ID-abort.c b/src/backend/taler-merchant-httpd_post-orders-ID-abort.c
index a7dadb69..50e6ccd5 100644
--- a/src/backend/taler-merchant-httpd_post-orders-ID-abort.c
+++ b/src/backend/taler-merchant-httpd_post-orders-ID-abort.c
@@ -360,7 +360,9 @@ generate_success_response (struct AbortContext *ac)
struct RefundDetails *rdi = &ac->rd[i];
json_t *detail;
- if ( (MHD_HTTP_BAD_REQUEST <= rdi->http_status) ||
+ if ( ( (MHD_HTTP_BAD_REQUEST <= rdi->http_status) &&
+ (MHD_HTTP_NOT_FOUND != rdi->http_status) &&
+ (MHD_HTTP_GONE != rdi->http_status) ) ||
(0 == rdi->http_status) ||
(NULL == rdi->exchange_reply) )
hc = MHD_HTTP_BAD_GATEWAY;