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