diff --git a/src/flt_http_comp.c b/src/flt_http_comp.c index ddcdce614..ce0dba17c 100644 --- a/src/flt_http_comp.c +++ b/src/flt_http_comp.c @@ -914,7 +914,7 @@ htx_select_comp_reshdr(struct comp_state *st, struct stream *s, struct http_msg (txn->status != 203)) goto fail; - if (msg->flags & HTTP_MSGF_BODYLESS) + if (!(msg->flags & HTTP_MSGF_XFER_LEN) || msg->flags & HTTP_MSGF_BODYLESS) goto fail; /* content is already compressed */