-fix BADF and add encoding filter
authorMartin Schanzenbach <mschanzenbach@posteo.de>
Mon, 29 Aug 2016 19:40:00 +0000 (19:40 +0000)
committerMartin Schanzenbach <mschanzenbach@posteo.de>
Mon, 29 Aug 2016 19:40:00 +0000 (19:40 +0000)
src/gns/gnunet-gns-proxy.c

index 44182a30f837374983d8e601492d55b659137bf0..af276cb3ab9e33b4fb1ba104c54848c28b39030d 100644 (file)
@@ -1438,6 +1438,8 @@ con_val_iter (void *cls,
     value = s5r->leho;
   if (0 == strcasecmp (MHD_HTTP_HEADER_CONTENT_LENGTH, key))
     return MHD_YES;
+  if (0 == strcasecmp (MHD_HTTP_HEADER_ACCEPT_ENCODING, key))
+    return MHD_YES;
   GNUNET_asprintf (&hdr,
                    "%s: %s",
                    key,
@@ -1810,6 +1812,7 @@ mhd_connection_cb (void *cls,
     return;
   }
   cleanup_s5r (s5r);
+  curl_download_prepare ();
   *con_cls = NULL;
 }