gnunet-svn
[Top][All Lists]
Advanced

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

[taler-exchange] 02/02: remove unnecessary fields


From: gnunet
Subject: [taler-exchange] 02/02: remove unnecessary fields
Date: Sat, 17 Feb 2024 19:12:49 +0100

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

grothoff pushed a commit to branch master
in repository exchange.

commit 81b54516af8595e024e54d5cef883c852239988c
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Sat Feb 17 19:12:45 2024 +0100

    remove unnecessary fields
---
 src/kyclogic/plugin_kyclogic_oauth2.c  | 4 ----
 src/kyclogic/plugin_kyclogic_persona.c | 6 ++----
 2 files changed, 2 insertions(+), 8 deletions(-)

diff --git a/src/kyclogic/plugin_kyclogic_oauth2.c 
b/src/kyclogic/plugin_kyclogic_oauth2.c
index 6ffa55d5..4225f45c 100644
--- a/src/kyclogic/plugin_kyclogic_oauth2.c
+++ b/src/kyclogic/plugin_kyclogic_oauth2.c
@@ -1153,8 +1153,6 @@ handle_curl_proof_finished (void *cls,
       body = GNUNET_JSON_PACK (
         GNUNET_JSON_pack_string ("message",
                                  "No response from KYC gateway"),
-        GNUNET_JSON_pack_bool ("debug",
-                               ph->pd->debug_mode),
         TALER_JSON_pack_ec (
           TALER_EC_EXCHANGE_KYC_PROOF_BACKEND_INVALID_RESPONSE));
       GNUNET_break (
@@ -1440,8 +1438,6 @@ oauth2_proof (void *cls,
       ph->status = TALER_KYCLOGIC_STATUS_USER_PENDING;
       ph->http_status = MHD_HTTP_BAD_REQUEST;
       body = GNUNET_JSON_PACK (
-        GNUNET_JSON_pack_bool ("debug",
-                               ph->pd->debug_mode),
         GNUNET_JSON_pack_string ("message",
                                  "'code' parameter malformed"),
         TALER_JSON_pack_ec (
diff --git a/src/kyclogic/plugin_kyclogic_persona.c 
b/src/kyclogic/plugin_kyclogic_persona.c
index 2183c612..c68b7f88 100644
--- a/src/kyclogic/plugin_kyclogic_persona.c
+++ b/src/kyclogic/plugin_kyclogic_persona.c
@@ -1309,7 +1309,7 @@ handle_proof_finished (void *cls,
     proof_reply_error (
       ph,
       ph->inquiry_id,
-      MHD_HTTP_INTERNAL_SERVER_ERROR,
+      MHD_HTTP_BAD_GATEWAY,
       "persona-exchange-unauthorized",
       GNUNET_JSON_PACK (
         GNUNET_JSON_pack_uint64 ("persona_http_status",
@@ -1329,7 +1329,7 @@ handle_proof_finished (void *cls,
     proof_reply_error (
       ph,
       ph->inquiry_id,
-      MHD_HTTP_INTERNAL_SERVER_ERROR,
+      MHD_HTTP_SERVICE_UNAVAILABLE,
       "persona-exchange-unpaid",
       GNUNET_JSON_PACK (
         GNUNET_JSON_pack_uint64 ("persona_http_status",
@@ -1428,8 +1428,6 @@ handle_proof_finished (void *cls,
                                  response_code),
         TALER_JSON_pack_ec (
           TALER_EC_EXCHANGE_KYC_GENERIC_PROVIDER_UNEXPECTED_REPLY),
-        GNUNET_JSON_pack_string ("detail",
-                                 "data-relationships-account-data-id"),
         GNUNET_JSON_pack_allow_null (
           GNUNET_JSON_pack_object_incref ("data",
                                           (json_t *)

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