[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r35395 - gnunet/src/rest
From: |
gnunet |
Subject: |
[GNUnet-SVN] r35395 - gnunet/src/rest |
Date: |
Mon, 16 Mar 2015 14:02:18 +0100 |
Author: schanzen
Date: 2015-03-16 14:02:18 +0100 (Mon, 16 Mar 2015)
New Revision: 35395
Modified:
gnunet/src/rest/gnunet-rest-server.c
Log:
-fix
Modified: gnunet/src/rest/gnunet-rest-server.c
===================================================================
--- gnunet/src/rest/gnunet-rest-server.c 2015-03-15 21:15:14 UTC (rev
35394)
+++ gnunet/src/rest/gnunet-rest-server.c 2015-03-16 13:02:18 UTC (rev
35395)
@@ -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 @@
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 @@
{
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",
"*");
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r35395 - gnunet/src/rest,
gnunet <=