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.
This commit is contained in:
Willy Tarreau 2012-11-27 07:31:33 +01:00
parent 7d588eed78
commit 9101535038

View File

@ -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;
}