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:
William Lallemand 2012-11-12 13:56:25 +01:00 committed by Willy Tarreau
parent 4690985fca
commit c04ca58222

View File

@ -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)