From: Martin Schanzenbach Date: Tue, 30 Aug 2016 20:35:38 +0000 (+0000) Subject: -fix ipv6; dont remove Expect header from curl X-Git-Tag: initial-import-from-subversion-38251~302 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=7284d5df365298347caca546fd91a010d0af3719;p=oweals%2Fgnunet.git -fix ipv6; dont remove Expect header from curl --- 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;