aboutsummaryrefslogtreecommitdiff
path: root/src/rest
diff options
context:
space:
mode:
authorMartin Schanzenbach <mschanzenbach@posteo.de>2015-03-13 15:33:47 +0000
committerMartin Schanzenbach <mschanzenbach@posteo.de>2015-03-13 15:33:47 +0000
commit7ae2282ee296b24e0132d155ece49ae87e21215b (patch)
tree1dd3d8f99e0b23fcb703c9cc50f05932bf682e18 /src/rest
parente2963510a62c68113535f885365137083d9f474c (diff)
downloadgnunet-7ae2282ee296b24e0132d155ece49ae87e21215b.tar.gz
gnunet-7ae2282ee296b24e0132d155ece49ae87e21215b.zip
-change API
Diffstat (limited to 'src/rest')
-rw-r--r--src/rest/gnunet-rest-server.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/rest/gnunet-rest-server.c b/src/rest/gnunet-rest-server.c
index 1f909c58c..1a6ab73b0 100644
--- a/src/rest/gnunet-rest-server.c
+++ b/src/rest/gnunet-rest-server.c
@@ -168,15 +168,10 @@ run_mhd_now ()
168 */ 168 */
169void 169void
170plugin_callback (void *cls, 170plugin_callback (void *cls,
171 const char *data, 171 struct MHD_Response *resp,
172 size_t len,
173 int status) 172 int status)
174{ 173{
175 struct MhdConnectionHandle *handle = cls; 174 struct MhdConnectionHandle *handle = cls;
176 struct MHD_Response *resp = MHD_create_response_from_buffer (len,
177 (void*)data,
178 MHD_RESPMEM_MUST_COPY);
179 (void) MHD_add_response_header (resp,MHD_HTTP_HEADER_CONTENT_TYPE,"application/json");
180 handle->status = status; 175 handle->status = status;
181 handle->response = resp; 176 handle->response = resp;
182 run_mhd_now(); 177 run_mhd_now();