From: Willy Tarreau Date: Tue, 27 Nov 2012 06:31:33 +0000 (+0100) Subject: BUG/MINOR: http: disable compression when message has no body X-Git-Tag: v1.5-dev15~40 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=91015350381558d9425a939ed1afaf48a799e89c;p=thirdparty%2Fhaproxy.git BUG/MINOR: http: disable compression when message has no body Compression was not disabled on 1xx, 204, 304 nor HEAD requests. This is not really a problem, but it reports more compressed responses than really done. --- diff --git a/src/proto_http.c b/src/proto_http.c index 6f1b9d796b..3184e24fd5 100644 --- a/src/proto_http.c +++ b/src/proto_http.c @@ -5136,6 +5136,7 @@ int http_wait_for_response(struct session *s, struct channel *rep, int an_bit) (txn->status >= 100 && txn->status < 200) || txn->status == 204 || txn->status == 304) { msg->flags |= HTTP_MSGF_XFER_LEN; + s->comp_algo = NULL; goto skip_content_length; }