diff options
Diffstat (limited to 'src/rest/rest.c')
-rw-r--r-- | src/rest/rest.c | 6 |
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 | ||
77 | int | 77 | int |
78 | GNUNET_REST_handle_request (struct RestConnectionDataHandle *conn, | 78 | GNUNET_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 | ||