aboutsummaryrefslogtreecommitdiff
path: root/src/rest
diff options
context:
space:
mode:
authorMartin Schanzenbach <mschanzenbach@posteo.de>2015-03-16 13:02:18 +0000
committerMartin Schanzenbach <mschanzenbach@posteo.de>2015-03-16 13:02:18 +0000
commit2f2679d125379457d14c73f8a7f2defaeea5c8a3 (patch)
tree8899b7d0e1e5b18997633082f622acb27097acb6 /src/rest
parent98a60eb782a11e3c86e0adc1282ffdd722a96c73 (diff)
downloadgnunet-2f2679d125379457d14c73f8a7f2defaeea5c8a3.tar.gz
gnunet-2f2679d125379457d14c73f8a7f2defaeea5c8a3.zip
-fix
Diffstat (limited to 'src/rest')
-rw-r--r--src/rest/gnunet-rest-server.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/src/rest/gnunet-rest-server.c b/src/rest/gnunet-rest-server.c
index 4dc1c591d..84fc69d02 100644
--- a/src/rest/gnunet-rest-server.c
+++ b/src/rest/gnunet-rest-server.c
@@ -64,11 +64,6 @@
64static struct GNUNET_SCHEDULER_Task * httpd_task; 64static struct GNUNET_SCHEDULER_Task * httpd_task;
65 65
66/** 66/**
67 * is this an ssl daemon? //TODO
68 */
69static int is_ssl;
70
71/**
72 * The port the service is running on (default 7776) 67 * The port the service is running on (default 7776)
73 */ 68 */
74static unsigned long port = GNUNET_REST_SERVICE_PORT; 69static unsigned long port = GNUNET_REST_SERVICE_PORT;
@@ -172,12 +167,6 @@ plugin_callback (void *cls,
172 int status) 167 int status)
173{ 168{
174 struct MhdConnectionHandle *handle = cls; 169 struct MhdConnectionHandle *handle = cls;
175 struct MHD_Response *resp = MHD_create_response_from_buffer (len,
176 (void*)data,
177 MHD_RESPMEM_MUST_COPY);
178 (void) MHD_add_response_header (resp,
179 MHD_HTTP_HEADER_CONTENT_TYPE,
180 "application/json");
181 handle->status = status; 170 handle->status = status;
182 handle->response = resp; 171 handle->response = resp;
183 run_mhd_now(); 172 run_mhd_now();
@@ -336,7 +325,7 @@ create_response (void *cls,
336 { 325 {
337 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 326 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
338 "Queueing response from plugin with MHD\n"); 327 "Queueing response from plugin with MHD\n");
339 /* FIXME: this is a bit dangerous... */ 328 /* FIXME: this is a bit dangerous... only for testing. */
340 MHD_add_response_header (con_handle->response, 329 MHD_add_response_header (con_handle->response,
341 "Access-Control-Allow-Origin", 330 "Access-Control-Allow-Origin",
342 "*"); 331 "*");