diff options
author | Martin Schanzenbach <mschanzenbach@posteo.de> | 2016-08-30 20:35:38 +0000 |
---|---|---|
committer | Martin Schanzenbach <mschanzenbach@posteo.de> | 2016-08-30 20:35:38 +0000 |
commit | 7284d5df365298347caca546fd91a010d0af3719 (patch) | |
tree | 74949441114ff58b09dc8f5174b0ab1ae7317330 /src/gns | |
parent | dd07add29a1023330edd1ccfc4e54991082bfe86 (diff) | |
download | gnunet-7284d5df365298347caca546fd91a010d0af3719.tar.gz gnunet-7284d5df365298347caca546fd91a010d0af3719.zip |
-fix ipv6; dont remove Expect header from curl
Diffstat (limited to 'src/gns')
-rw-r--r-- | src/gns/gnunet-gns-proxy.c | 6 |
1 files 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, | |||
1538 | } | 1538 | } |
1539 | GNUNET_snprintf (ipaddr, | 1539 | GNUNET_snprintf (ipaddr, |
1540 | sizeof (ipaddr), | 1540 | sizeof (ipaddr), |
1541 | "[%s]", | 1541 | "%s", |
1542 | ipstring); | 1542 | ipstring); |
1543 | port = ntohs (s6->sin6_port); | 1543 | port = ntohs (s6->sin6_port); |
1544 | break; | 1544 | break; |
@@ -1676,8 +1676,8 @@ create_response (void *cls, | |||
1676 | &con_val_iter, s5r); | 1676 | &con_val_iter, s5r); |
1677 | //TODO is this sane? Basically we disable cURLs built-in expect: | 1677 | //TODO is this sane? Basically we disable cURLs built-in expect: |
1678 | //100-continue | 1678 | //100-continue |
1679 | s5r->headers = curl_slist_append (s5r->headers, | 1679 | //s5r->headers = curl_slist_append (s5r->headers, |
1680 | "Expect:"); | 1680 | // "Expect:"); |
1681 | curl_easy_setopt (s5r->curl, CURLOPT_HTTPHEADER, s5r->headers); | 1681 | curl_easy_setopt (s5r->curl, CURLOPT_HTTPHEADER, s5r->headers); |
1682 | curl_download_prepare (); | 1682 | curl_download_prepare (); |
1683 | return MHD_YES; | 1683 | return MHD_YES; |