gnunet-svn
[Top][All Lists]
Advanced

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

[taler-exchange] branch master updated: use correct HTTP status codes:


From: gnunet
Subject: [taler-exchange] branch master updated: use correct HTTP status codes:
Date: Mon, 26 Oct 2020 13:21:31 +0100

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

grothoff pushed a commit to branch master
in repository exchange.

The following commit(s) were added to refs/heads/master by this push:
     new 11627b38 use correct HTTP status codes:
11627b38 is described below

commit 11627b38bbbe1942f8ad2667bc8297478879c6bd
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Mon Oct 26 13:21:28 2020 +0100

    use correct HTTP status codes:
---
 contrib/gana                                         | 2 +-
 src/exchange/taler-exchange-httpd_keystate.c         | 2 +-
 src/exchange/taler-exchange-httpd_refreshes_reveal.c | 2 +-
 src/exchangedb/test_exchangedb_denomkeys.c           | 3 +--
 4 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/contrib/gana b/contrib/gana
index 78138eee..32acd55e 160000
--- a/contrib/gana
+++ b/contrib/gana
@@ -1 +1 @@
-Subproject commit 78138eee72ade00788fbce032cb096f64fc1b9fb
+Subproject commit 32acd55e3d886322dab80bfbed4e73f590013472
diff --git a/src/exchange/taler-exchange-httpd_keystate.c 
b/src/exchange/taler-exchange-httpd_keystate.c
index 7f0f2012..2d80d03a 100644
--- a/src/exchange/taler-exchange-httpd_keystate.c
+++ b/src/exchange/taler-exchange-httpd_keystate.c
@@ -2545,7 +2545,7 @@ TEH_handler_keys (const struct TEH_RequestHandler *rh,
     {
       /* Option not allowed by configuration */
       return TALER_MHD_reply_with_error (connection,
-                                         MHD_HTTP_BAD_REQUEST,
+                                         MHD_HTTP_FORBIDDEN,
                                          TALER_EC_KEYS_TIMETRAVEL_FORBIDDEN,
                                          NULL);
     }
diff --git a/src/exchange/taler-exchange-httpd_refreshes_reveal.c 
b/src/exchange/taler-exchange-httpd_refreshes_reveal.c
index 09d1a67b..ddfaeef7 100644
--- a/src/exchange/taler-exchange-httpd_refreshes_reveal.c
+++ b/src/exchange/taler-exchange-httpd_refreshes_reveal.c
@@ -461,7 +461,7 @@ refreshes_reveal_transaction (void *cls,
     {
       GNUNET_break_op (0);
       *mhd_ret = TALER_MHD_reply_with_error (connection,
-                                             MHD_HTTP_INTERNAL_SERVER_ERROR,
+                                             MHD_HTTP_BAD_REQUEST,
                                              
TALER_EC_REVEAL_AMOUNT_INSUFFICIENT,
                                              NULL);
       return GNUNET_DB_STATUS_HARD_ERROR;
diff --git a/src/exchangedb/test_exchangedb_denomkeys.c 
b/src/exchangedb/test_exchangedb_denomkeys.c
index b28b2999..6a653c7f 100644
--- a/src/exchangedb/test_exchangedb_denomkeys.c
+++ b/src/exchangedb/test_exchangedb_denomkeys.c
@@ -159,8 +159,7 @@ main (int argc,
                    (unsigned long long) start.abs_value_us);
   GNUNET_asprintf (&revdir,
                    "%s/revocations/",
-                   tmpdir,
-                   TALER_EXCHANGEDB_DIR_DENOMINATION_KEYS);
+                   tmpdir);
   EXITIF (GNUNET_OK !=
           TALER_EXCHANGEDB_denomination_key_write (tmpfile,
                                                    &dki));

-- 
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]