From 991a3cbe7c36c152a5657caaa87ef8d8a5c49ade Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Thu, 16 May 2013 10:53:28 +0200 Subject: [PATCH] HTTP encode. Remove Transfer-Encoding header YAZ uses content_len and full response anyway, so a Transfer-Encoding header will obstruct the response. --- src/http.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 1.7.10.4