diff --git a/src/mux_h1.c b/src/mux_h1.c index 4df1289ea..56937391f 100644 --- a/src/mux_h1.c +++ b/src/mux_h1.c @@ -1538,6 +1538,10 @@ static size_t h1_process_output(struct h1c *h1c, struct buffer *buf, size_t coun if (isteqi(n, ist("transfer-encoding"))) h1_parse_xfer_enc_header(h1m, v); + else if (isteqi(n, ist("content-length"))) { + if (h1_parse_cont_len_header(h1m, &v) <= 0) + goto skip_hdr; + } else if (isteqi(n, ist("connection"))) { h1_parse_connection_header(h1m, v); h1_process_conn_mode(h1s, h1m, NULL, &v);