[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet] branch master updated: fix order of namespaces in plugin_rest_i
From: |
gnunet |
Subject: |
[gnunet] branch master updated: fix order of namespaces in plugin_rest_identity GNUNET_REST_namespace_match() always matched to the first namespace for GET |
Date: |
Fri, 28 Aug 2020 12:33:19 +0200 |
This is an automated email from the git hooks/post-receive script.
spaethj pushed a commit to branch master
in repository gnunet.
The following commit(s) were added to refs/heads/master by this push:
new bbf9540c9 fix order of namespaces in plugin_rest_identity
GNUNET_REST_namespace_match() always matched to the first namespace for GET
bbf9540c9 is described below
commit bbf9540c93da3c6b950920ee7eaae479c95403c5
Author: jospaeth <spaethj@in.tum.de>
AuthorDate: Fri Aug 28 12:26:52 2020 +0200
fix order of namespaces in plugin_rest_identity
GNUNET_REST_namespace_match() always matched to the first namespace for GET
---
src/identity/plugin_rest_identity.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/identity/plugin_rest_identity.c
b/src/identity/plugin_rest_identity.c
index 4e32b73dd..d86d29e36 100644
--- a/src/identity/plugin_rest_identity.c
+++ b/src/identity/plugin_rest_identity.c
@@ -1296,13 +1296,13 @@ rest_process_request (struct GNUNET_REST_RequestHandle
*rest_handle,
struct RequestHandle *handle = GNUNET_new (struct RequestHandle);
struct GNUNET_REST_RequestHandlerError err;
static const struct GNUNET_REST_RequestHandler handlers[] =
- { { MHD_HTTP_METHOD_GET, GNUNET_REST_API_NS_IDENTITY, &ego_get_all },
- { MHD_HTTP_METHOD_GET, GNUNET_REST_API_NS_IDENTITY_PUBKEY,
+ { { MHD_HTTP_METHOD_GET, GNUNET_REST_API_NS_IDENTITY_PUBKEY,
&ego_get_pubkey },
{ MHD_HTTP_METHOD_GET, GNUNET_REST_API_NS_IDENTITY_NAME, &ego_get_name },
{ MHD_HTTP_METHOD_GET,
GNUNET_REST_API_NS_IDENTITY_SUBSYSTEM,
&ego_get_subsystem },
+ { MHD_HTTP_METHOD_GET, GNUNET_REST_API_NS_IDENTITY, &ego_get_all },
{ MHD_HTTP_METHOD_PUT,
GNUNET_REST_API_NS_IDENTITY_PUBKEY,
&ego_edit_pubkey },
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnunet] branch master updated: fix order of namespaces in plugin_rest_identity GNUNET_REST_namespace_match() always matched to the first namespace for GET,
gnunet <=