diff options
author | Martin Schanzenbach <mschanzenbach@posteo.de> | 2016-08-29 19:40:00 +0000 |
---|---|---|
committer | Martin Schanzenbach <mschanzenbach@posteo.de> | 2016-08-29 19:40:00 +0000 |
commit | 81f3fb6638d0bd9a130b373824e784b2a88a4b8f (patch) | |
tree | 53a6d38b4f48bbc6aee92a9110dd135ab9aaaa84 /src/gns | |
parent | 9cea85e419df69a9994c80d70344c162e3ff9a31 (diff) | |
download | gnunet-81f3fb6638d0bd9a130b373824e784b2a88a4b8f.tar.gz gnunet-81f3fb6638d0bd9a130b373824e784b2a88a4b8f.zip |
-fix BADF and add encoding filter
Diffstat (limited to 'src/gns')
-rw-r--r-- | src/gns/gnunet-gns-proxy.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gns/gnunet-gns-proxy.c b/src/gns/gnunet-gns-proxy.c index 44182a30f..af276cb3a 100644 --- a/src/gns/gnunet-gns-proxy.c +++ b/src/gns/gnunet-gns-proxy.c | |||
@@ -1438,6 +1438,8 @@ con_val_iter (void *cls, | |||
1438 | value = s5r->leho; | 1438 | value = s5r->leho; |
1439 | if (0 == strcasecmp (MHD_HTTP_HEADER_CONTENT_LENGTH, key)) | 1439 | if (0 == strcasecmp (MHD_HTTP_HEADER_CONTENT_LENGTH, key)) |
1440 | return MHD_YES; | 1440 | return MHD_YES; |
1441 | if (0 == strcasecmp (MHD_HTTP_HEADER_ACCEPT_ENCODING, key)) | ||
1442 | return MHD_YES; | ||
1441 | GNUNET_asprintf (&hdr, | 1443 | GNUNET_asprintf (&hdr, |
1442 | "%s: %s", | 1444 | "%s: %s", |
1443 | key, | 1445 | key, |
@@ -1810,6 +1812,7 @@ mhd_connection_cb (void *cls, | |||
1810 | return; | 1812 | return; |
1811 | } | 1813 | } |
1812 | cleanup_s5r (s5r); | 1814 | cleanup_s5r (s5r); |
1815 | curl_download_prepare (); | ||
1813 | *con_cls = NULL; | 1816 | *con_cls = NULL; |
1814 | } | 1817 | } |
1815 | 1818 | ||