gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-sync] branch master updated: fix status code when merchant reques


From: gnunet
Subject: [taler-sync] branch master updated: fix status code when merchant request fails
Date: Wed, 10 Mar 2021 11:23:06 +0100

This is an automated email from the git hooks/post-receive script.

dold pushed a commit to branch master
in repository sync.

The following commit(s) were added to refs/heads/master by this push:
     new 07f3212  fix status code when merchant request fails
07f3212 is described below

commit 07f3212060f4fa709c4765d4bc86dec38d71f0fe
Author: Florian Dold <florian@dold.me>
AuthorDate: Wed Mar 10 11:23:01 2021 +0100

    fix status code when merchant request fails
---
 src/sync/sync-httpd_backup_post.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/sync/sync-httpd_backup_post.c 
b/src/sync/sync-httpd_backup_post.c
index 4993e0f..8dd1fc2 100644
--- a/src/sync/sync-httpd_backup_post.c
+++ b/src/sync/sync-httpd_backup_post.c
@@ -319,7 +319,7 @@ proposal_cb (void *cls,
                 "Backend returned status %u/%u\n",
                 por->hr.http_status,
                 (unsigned int) por->hr.ec);
-    GNUNET_break (0);
+    GNUNET_break_op (0);
     bc->resp = TALER_MHD_make_json_pack (
       "{s:I, s:s, s:I, s:I, s:O?}",
       "code",
@@ -333,7 +333,7 @@ proposal_cb (void *cls,
       "backend-reply",
       por->hr.reply);
     GNUNET_assert (NULL != bc->resp);
-    bc->response_code = MHD_HTTP_FAILED_DEPENDENCY;
+    bc->response_code = MHD_HTTP_BAD_GATEWAY;
     return;
   }
   GNUNET_log (GNUNET_ERROR_TYPE_INFO,

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]