mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-03-31 07:37:54 +00:00
BUG/MEDIUM: compression: no Content-Type header but type in configuration
HAProxy was compressing data when there was no Content-Type header in the response but a compression type specified in the configuration.
This commit is contained in:
parent
4690985fca
commit
c04ca58222
@ -2083,6 +2083,9 @@ int select_compression_response_header(struct session *s, struct buffer *res)
|
||||
/* this Content-Type should be compressed */
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
/* there is no Content-Type header */
|
||||
goto fail;
|
||||
}
|
||||
/* this Content-Type should not be compressed */
|
||||
if (comp_type == NULL)
|
||||
|
Loading…
Reference in New Issue
Block a user