commit 2f2679d125379457d14c73f8a7f2defaeea5c8a3
parent 98a60eb782a11e3c86e0adc1282ffdd722a96c73
Author: Martin Schanzenbach <mschanzenbach@posteo.de>
Date: Mon, 16 Mar 2015 13:02:18 +0000
-fix
Diffstat:
1 file changed, 1 insertion(+), 12 deletions(-)
diff --git a/src/rest/gnunet-rest-server.c b/src/rest/gnunet-rest-server.c
@@ -64,11 +64,6 @@
static struct GNUNET_SCHEDULER_Task * httpd_task;
/**
- * is this an ssl daemon? //TODO
- */
-static int is_ssl;
-
-/**
* The port the service is running on (default 7776)
*/
static unsigned long port = GNUNET_REST_SERVICE_PORT;
@@ -172,12 +167,6 @@ plugin_callback (void *cls,
int status)
{
struct MhdConnectionHandle *handle = cls;
- struct MHD_Response *resp = MHD_create_response_from_buffer (len,
- (void*)data,
- MHD_RESPMEM_MUST_COPY);
- (void) MHD_add_response_header (resp,
- MHD_HTTP_HEADER_CONTENT_TYPE,
- "application/json");
handle->status = status;
handle->response = resp;
run_mhd_now();
@@ -336,7 +325,7 @@ create_response (void *cls,
{
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"Queueing response from plugin with MHD\n");
- /* FIXME: this is a bit dangerous... */
+ /* FIXME: this is a bit dangerous... only for testing. */
MHD_add_response_header (con_handle->response,
"Access-Control-Allow-Origin",
"*");