From: Martin Schanzenbach Date: Mon, 29 Aug 2016 11:42:25 +0000 (+0000) Subject: - Remove content length header in responses X-Git-Tag: initial-import-from-subversion-38251~317 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b75b65180e3a3bfcbc4d1d7fd6e7836afe09e97b;p=oweals%2Fgnunet.git - Remove content length header in responses --- diff --git a/src/gns/gnunet-gns-proxy.c b/src/gns/gnunet-gns-proxy.c index 1b4fcf4bf..36790994a 100644 --- a/src/gns/gnunet-gns-proxy.c +++ b/src/gns/gnunet-gns-proxy.c @@ -1139,7 +1139,9 @@ curl_check_hdr (void *buffer, size_t size, size_t nmemb, void *cls) *tok = '\0'; if (NULL != (tok = strchr (hdr_val, '\t'))) *tok = '\0'; - if (0 != strlen (hdr_val)) + if ( (0 != strlen (hdr_val) ) && + /* We do chunked transfer encoding */ + (0 != strcasecmp (MHD_HTTP_HEADER_CONTENT_LENGTH, hdr_type))) { GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Adding header %s: %s to MHD response\n",