[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-challenger] branch master updated: /info endpoint must wrap raw r
From: |
gnunet |
Subject: |
[taler-challenger] branch master updated: /info endpoint must wrap raw response data |
Date: |
Thu, 02 Nov 2023 22:30:16 +0100 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository challenger.
The following commit(s) were added to refs/heads/master by this push:
new 7513c51 /info endpoint must wrap raw response data
7513c51 is described below
commit 7513c512f23a286a60c991cc6295e53d6b35e550
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Thu Nov 2 22:30:11 2023 +0100
/info endpoint must wrap raw response data
---
src/challenger/challenger-httpd_info.c | 17 +++++++++++------
src/challenger/challenger-httpd_token.c | 1 -
2 files changed, 11 insertions(+), 7 deletions(-)
diff --git a/src/challenger/challenger-httpd_info.c
b/src/challenger/challenger-httpd_info.c
index 53cc86f..d5b812d 100644
--- a/src/challenger/challenger-httpd_info.c
+++ b/src/challenger/challenger-httpd_info.c
@@ -111,12 +111,17 @@ CH_handler_info (struct CH_HandlerContext *hc,
mret = TALER_MHD_REPLY_JSON_PACK (
hc->connection,
MHD_HTTP_OK,
- GNUNET_JSON_pack_string ("address",
- address),
- GNUNET_JSON_pack_string ("address_type",
- CH_address_type),
- GNUNET_JSON_pack_timestamp ("expires",
- address_expiration));
+ GNUNET_JSON_pack_string ("status",
+ "success"),
+ GNUNET_JSON_pack_object_steal (
+ "data",
+ GNUNET_JSON_PACK (
+ GNUNET_JSON_pack_string ("address",
+ address),
+ GNUNET_JSON_pack_string ("address_type",
+ CH_address_type),
+ GNUNET_JSON_pack_timestamp ("expires",
+ address_expiration))));
GNUNET_free (address);
return mret;
}
diff --git a/src/challenger/challenger-httpd_token.c
b/src/challenger/challenger-httpd_token.c
index ff24346..ab40b0e 100644
--- a/src/challenger/challenger-httpd_token.c
+++ b/src/challenger/challenger-httpd_token.c
@@ -469,7 +469,6 @@ CH_handler_token (struct CH_HandlerContext *hc,
break;
}
-
return TALER_MHD_REPLY_JSON_PACK (
hc->connection,
MHD_HTTP_OK,
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-challenger] branch master updated: /info endpoint must wrap raw response data,
gnunet <=