X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fhttp.c;h=005a2e632b2f06f153b4f2416b0c6eb9ca6f961c;hp=d16db355bc4840c1c7bc66ce15dd46a3febfcc1b;hb=991a3cbe7c36c152a5657caaa87ef8d8a5c49ade;hpb=38527b3ceab46772e46551ed0d311c1e3bf082e3;ds=sidebyside 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);