From: Adam Dickmeiss Date: Thu, 16 May 2013 08:53:28 +0000 (+0200) Subject: HTTP encode. Remove Transfer-Encoding header X-Git-Tag: v4.2.58~14 X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=commitdiff_plain;h=991a3cbe7c36c152a5657caaa87ef8d8a5c49ade;ds=sidebyside HTTP encode. Remove Transfer-Encoding header YAZ uses content_len and full response anyway, so a Transfer-Encoding header will obstruct the response. --- diff --git a/src/http.c b/src/http.c index d16db35..005a2e6 100644 --- a/src/http.c +++ b/src/http.c @@ -578,7 +578,8 @@ int yaz_encode_http_response(ODR o, Z_HTTP_Response *hr) odr_write2(o, sbuf, strlen(sbuf)); for (h = hr->headers; h; h = h->next) { - if (yaz_matchstr(h->name, "Content-Length")) + if (yaz_matchstr(h->name, "Content-Length") + && yaz_matchstr(h->name, "Transfer-Encoding")) { /* skip Content-Length if given. content_len rules */ odr_write2(o, h->name, strlen(h->name)); odr_write2(o, ": ", 2);