diff options
-rw-r--r-- | src/rest/Makefile.am | 4 | ||||
-rw-r--r-- | src/rest/plugin_rest_copying.c | 10 |
2 files changed, 5 insertions, 9 deletions
diff --git a/src/rest/Makefile.am b/src/rest/Makefile.am index 848b7101c..ce0454d53 100644 --- a/src/rest/Makefile.am +++ b/src/rest/Makefile.am | |||
@@ -35,10 +35,8 @@ libgnunet_plugin_rest_copying_la_SOURCES = \ | |||
35 | plugin_rest_copying.c | 35 | plugin_rest_copying.c |
36 | libgnunet_plugin_rest_copying_la_LIBADD = \ | 36 | libgnunet_plugin_rest_copying_la_LIBADD = \ |
37 | $(top_builddir)/src/rest/libgnunetrest.la \ | 37 | $(top_builddir)/src/rest/libgnunetrest.la \ |
38 | $(top_builddir)/src/jsonapi/libgnunetjsonapi.la \ | ||
39 | $(top_builddir)/src/jsonapi/libgnunetjsonapiutils.la \ | ||
40 | $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) \ | 38 | $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) \ |
41 | $(LTLIBINTL) -ljansson -lmicrohttpd | 39 | $(LTLIBINTL) -lmicrohttpd |
42 | libgnunet_plugin_rest_copying_la_LDFLAGS = \ | 40 | libgnunet_plugin_rest_copying_la_LDFLAGS = \ |
43 | $(GN_PLUGIN_LDFLAGS) | 41 | $(GN_PLUGIN_LDFLAGS) |
44 | 42 | ||
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); |