From: Willy Tarreau Date: Thu, 17 Apr 2014 19:55:11 +0000 (+0200) Subject: MAJOR: http: re-enable compression on chunked encoding X-Git-Tag: v1.5-dev23~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5fb0abd9a1c53639c62c0cf9fb0a3ea9e08b92dd;p=thirdparty%2Fhaproxy.git MAJOR: http: re-enable compression on chunked encoding This is basically a revert of commit 667c2a3 ("BUG/MAJOR: http: compression still has defects on chunked responses"). The latest changes applied to message pointers should have got rid of all the issues that were making the compression of partial chunks unreliable. --- diff --git a/src/proto_http.c b/src/proto_http.c index 8af97ac029..6dc9fb5f53 100644 --- a/src/proto_http.c +++ b/src/proto_http.c @@ -2317,10 +2317,6 @@ int select_compression_response_header(struct session *s, struct buffer *res) if (!(msg->flags & HTTP_MSGF_TE_CHNK) && msg->body_len == 0) goto fail; - /* TEMPORARY WORKAROUND: do not compress if response is chunked !!!!!! */ - if (msg->flags & HTTP_MSGF_TE_CHNK) - goto fail; - /* content is already compressed */ ctx.idx = 0; if (http_find_header2("Content-Encoding", 16, res->p, &txn->hdr_idx, &ctx))