From b75b65180e3a3bfcbc4d1d7fd6e7836afe09e97b Mon Sep 17 00:00:00 2001 From: Martin Schanzenbach Date: Mon, 29 Aug 2016 11:42:25 +0000 Subject: [PATCH] - Remove content length header in responses --- src/gns/gnunet-gns-proxy.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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", -- 2.25.1