diff options
author | Schanzenbach, Martin <mschanzenbach@posteo.de> | 2019-04-26 19:13:02 +0200 |
---|---|---|
committer | Schanzenbach, Martin <mschanzenbach@posteo.de> | 2019-04-26 19:13:02 +0200 |
commit | ee0bcfa1b81cd7a5bed95991b24a23393f712409 (patch) | |
tree | dcde1fad8494ff1ec7816f8e3e5d74b4218af68c /src/gns/gnunet-gns-proxy.c | |
parent | 47276bf020c03db80e12928fe529d2564be4b171 (diff) | |
download | gnunet-ee0bcfa1b81cd7a5bed95991b24a23393f712409.tar.gz gnunet-ee0bcfa1b81cd7a5bed95991b24a23393f712409.zip |
Revert "GNS/PROXY: Forward request query escaped"
This reverts commit 47276bf020c03db80e12928fe529d2564be4b171.
Diffstat (limited to 'src/gns/gnunet-gns-proxy.c')
-rw-r--r-- | src/gns/gnunet-gns-proxy.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/gns/gnunet-gns-proxy.c b/src/gns/gnunet-gns-proxy.c index 870a34b3c..bae222499 100644 --- a/src/gns/gnunet-gns-proxy.c +++ b/src/gns/gnunet-gns-proxy.c | |||
@@ -561,11 +561,6 @@ struct Socks5Request | |||
561 | char *url; | 561 | char *url; |
562 | 562 | ||
563 | /** | 563 | /** |
564 | * The urlencoded URL | ||
565 | */ | ||
566 | char *curl_url; | ||
567 | |||
568 | /** | ||
569 | * Handle to cURL | 564 | * Handle to cURL |
570 | */ | 565 | */ |
571 | CURL *curl; | 566 | CURL *curl; |
@@ -1914,7 +1909,6 @@ create_response (void *cls, | |||
1914 | return MHD_queue_response (con, | 1909 | return MHD_queue_response (con, |
1915 | MHD_HTTP_INTERNAL_SERVER_ERROR, | 1910 | MHD_HTTP_INTERNAL_SERVER_ERROR, |
1916 | curl_failure_response); | 1911 | curl_failure_response); |
1917 | s5r->url = curl_easy_escape (s5r->curl, s5r->url, strlen (s5r->url)); | ||
1918 | curl_easy_setopt (s5r->curl, | 1912 | curl_easy_setopt (s5r->curl, |
1919 | CURLOPT_HEADERFUNCTION, | 1913 | CURLOPT_HEADERFUNCTION, |
1920 | &curl_check_hdr); | 1914 | &curl_check_hdr); |
@@ -2321,10 +2315,8 @@ mhd_completed_cb (void *cls, | |||
2321 | "Finished request for %s\n", | 2315 | "Finished request for %s\n", |
2322 | s5r->url); | 2316 | s5r->url); |
2323 | GNUNET_free (s5r->url); | 2317 | GNUNET_free (s5r->url); |
2324 | curl_free (s5r->curl_url); | ||
2325 | s5r->state = SOCKS5_SOCKET_WITH_MHD; | 2318 | s5r->state = SOCKS5_SOCKET_WITH_MHD; |
2326 | s5r->url = NULL; | 2319 | s5r->url = NULL; |
2327 | s5r->curl_url = NULL; | ||
2328 | s5r->response = NULL; | 2320 | s5r->response = NULL; |
2329 | *con_cls = NULL; | 2321 | *con_cls = NULL; |
2330 | } | 2322 | } |