diff options
Diffstat (limited to 'src/rest/plugin_rest_copying.c')
-rw-r--r-- | src/rest/plugin_rest_copying.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/rest/plugin_rest_copying.c b/src/rest/plugin_rest_copying.c index f6a085c03..668dc5d38 100644 --- a/src/rest/plugin_rest_copying.c +++ b/src/rest/plugin_rest_copying.c | |||
@@ -24,9 +24,7 @@ | |||
24 | 24 | ||
25 | #include "platform.h" | 25 | #include "platform.h" |
26 | #include "gnunet_rest_plugin.h" | 26 | #include "gnunet_rest_plugin.h" |
27 | #include <gnunet_jsonapi_util.h> | ||
28 | #include <gnunet_rest_lib.h> | 27 | #include <gnunet_rest_lib.h> |
29 | #include <jansson.h> | ||
30 | 28 | ||
31 | #define GNUNET_REST_API_NS_COPYING "/copying" | 29 | #define GNUNET_REST_API_NS_COPYING "/copying" |
32 | 30 | ||
@@ -173,10 +171,10 @@ rest_copying_process_request (struct GNUNET_REST_RequestHandle *conndata_handle, | |||
173 | handle->proc = proc; | 171 | handle->proc = proc; |
174 | handle->rest_handle = conndata_handle; | 172 | handle->rest_handle = conndata_handle; |
175 | 173 | ||
176 | if (GNUNET_NO == GNUNET_JSONAPI_handle_request (conndata_handle, | 174 | if (GNUNET_NO == GNUNET_REST_handle_request (conndata_handle, |
177 | handlers, | 175 | handlers, |
178 | &err, | 176 | &err, |
179 | handle)) | 177 | handle)) |
180 | { | 178 | { |
181 | handle->response_code = err.error_code; | 179 | handle->response_code = err.error_code; |
182 | GNUNET_SCHEDULER_add_now (&do_error, handle); | 180 | GNUNET_SCHEDULER_add_now (&do_error, handle); |