]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MAJOR: http: re-enable compression on chunked encoding
authorWilly Tarreau <w@1wt.eu>
Thu, 17 Apr 2014 19:55:11 +0000 (21:55 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 22 Apr 2014 21:15:28 +0000 (23:15 +0200)
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.

src/proto_http.c

index 8af97ac02962aff0b63302897bfc75abb6072abe..6dc9fb5f53eecb4305718011cb931a713a118f08 100644 (file)
@@ -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))