aboutsummaryrefslogtreecommitdiff
path: root/src/rest/rest.c
diff options
context:
space:
mode:
authorMartin Schanzenbach <mschanzenbach@posteo.de>2016-05-04 09:44:35 +0000
committerMartin Schanzenbach <mschanzenbach@posteo.de>2016-05-04 09:44:35 +0000
commit493305a0d4e9d7f9bdc35fabfd8027a487586e47 (patch)
treeec05c1bde5b5cfb7937de6f06dc3586f26f557f9 /src/rest/rest.c
parent8e9bb50b7543608c2c1a833a5b92f19941ed7a0a (diff)
downloadgnunet-493305a0d4e9d7f9bdc35fabfd8027a487586e47.tar.gz
gnunet-493305a0d4e9d7f9bdc35fabfd8027a487586e47.zip
- rework rest/jsonapi API; bugfixes
Diffstat (limited to 'src/rest/rest.c')
-rw-r--r--src/rest/rest.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/rest/rest.c b/src/rest/rest.c
index a17955314..bf32c9849 100644
--- a/src/rest/rest.c
+++ b/src/rest/rest.c
@@ -75,8 +75,9 @@ GNUNET_REST_create_json_response (const char *data)
75} 75}
76 76
77int 77int
78GNUNET_REST_handle_request (struct RestConnectionDataHandle *conn, 78GNUNET_REST_handle_request (struct GNUNET_REST_RequestHandle *conn,
79 const struct GNUNET_REST_RestConnectionHandler *handlers, 79 const struct GNUNET_REST_RequestHandler *handlers,
80 struct GNUNET_REST_RequestHandlerError *err,
80 void *cls) 81 void *cls)
81{ 82{
82 int count; 83 int count;
@@ -104,6 +105,7 @@ GNUNET_REST_handle_request (struct RestConnectionDataHandle *conn,
104 return GNUNET_YES; 105 return GNUNET_YES;
105 } 106 }
106 GNUNET_free (url); 107 GNUNET_free (url);
108 err->error_code = MHD_HTTP_BAD_REQUEST;
107 return GNUNET_NO; 109 return GNUNET_NO;
108} 110}
109 111