From 91015350381558d9425a939ed1afaf48a799e89c Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Tue, 27 Nov 2012 07:31:33 +0100 Subject: [PATCH] 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. --- src/proto_http.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/proto_http.c b/src/proto_http.c index 6f1b9d796..3184e24fd 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; } -- 2.47.3