diff --git a/src/proto_http.c b/src/proto_http.c index f86dcc357..4fc37ed5d 100644 --- a/src/proto_http.c +++ b/src/proto_http.c @@ -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)