From 7284d5df365298347caca546fd91a010d0af3719 Mon Sep 17 00:00:00 2001 From: Martin Schanzenbach Date: Tue, 30 Aug 2016 20:35:38 +0000 Subject: [PATCH] -fix ipv6; dont remove Expect header from curl --- src/gns/gnunet-gns-proxy.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gns/gnunet-gns-proxy.c b/src/gns/gnunet-gns-proxy.c index af276cb3a..c02247988 100644 --- a/src/gns/gnunet-gns-proxy.c +++ b/src/gns/gnunet-gns-proxy.c @@ -1538,7 +1538,7 @@ create_response (void *cls, } GNUNET_snprintf (ipaddr, sizeof (ipaddr), - "[%s]", + "%s", ipstring); port = ntohs (s6->sin6_port); break; @@ -1676,8 +1676,8 @@ create_response (void *cls, &con_val_iter, s5r); //TODO is this sane? Basically we disable cURLs built-in expect: //100-continue - s5r->headers = curl_slist_append (s5r->headers, - "Expect:"); + //s5r->headers = curl_slist_append (s5r->headers, + // "Expect:"); curl_easy_setopt (s5r->curl, CURLOPT_HTTPHEADER, s5r->headers); curl_download_prepare (); return MHD_YES; -- 2.25.1