mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-01-19 04:00:46 +00:00
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:
parent
7d588eed78
commit
9101535038
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user