mirror of
https://github.com/haproxy/haproxy.git
synced 2026-06-07 07:42:49 -04: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
1 changed files with 1 additions and 0 deletions
|
|
@ -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 a new issue