[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r23039 - gnunet/src/gns
From: |
gnunet |
Subject: |
[GNUnet-SVN] r23039 - gnunet/src/gns |
Date: |
Thu, 2 Aug 2012 18:28:00 +0200 |
Author: schanzen
Date: 2012-08-02 18:28:00 +0200 (Thu, 02 Aug 2012)
New Revision: 23039
Modified:
gnunet/src/gns/gnunet-gns-proxy.c
Log:
-proxy: add GNS header
Modified: gnunet/src/gns/gnunet-gns-proxy.c
===================================================================
--- gnunet/src/gns/gnunet-gns-proxy.c 2012-08-02 15:58:08 UTC (rev 23038)
+++ gnunet/src/gns/gnunet-gns-proxy.c 2012-08-02 16:28:00 UTC (rev 23039)
@@ -576,21 +576,6 @@
}
-static int
-get_uri_val_iter (void *cls,
- enum MHD_ValueKind kind,
- const char *key,
- const char *value)
-{
- char* buf = cls;
-
- if (strlen (buf) + strlen (value) + 3 > MAX_HTTP_URI_LENGTH)
- return MHD_NO;
- sprintf (buf+strlen (buf), "?%s=%s", key, value);
-
- return MHD_YES;
-}
-
/**
* Read HTTP request header field 'Host'
*
@@ -1816,9 +1801,7 @@
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
"Got %s request for %s\n", meth, url);
- //ctask = GNUNET_malloc (sizeof (struct ProxyCurlTask));
ctask->mhd = hd;
-
ctask->curl = curl_easy_init();
if (NULL == ctask->curl)
{
@@ -1833,6 +1816,9 @@
return ret;
}
+ /* Add GNS header */
+ ctask->headers = curl_slist_append (ctask->headers,
+ "GNS: YES");
ctask->accepted = GNUNET_YES;
ctask->download_in_progress = GNUNET_YES;
ctask->buf_status = BUF_WAIT_FOR_CURL;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r23039 - gnunet/src/gns,
gnunet <=