BUG/MEDIUM: mux-h1: Be able to handle trailers when C-L header was specified
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 5 May 2022 07:39:42 +0000 (09:39 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 5 May 2022 07:39:43 +0000 (09:39 +0200)
commitd934e8d963fe1b88edc22a7277a7389005dd7856
tree4d6a7faf56e3eb7ba1a813b473c50b72e2b2c035
parent2db904e86c5f19e12d30b8746a622bcb072d914a
BUG/MEDIUM: mux-h1: Be able to handle trailers when C-L header was specified

The commit 2eb5243e7 ("BUG/MEDIUM: mux-h1: Set outgoing message to DONE when
payload length is reached") introduced a regression. An internal error is
reported when we try to forward a message with trailers while the
content-length header was specified. Indeed, this case does not exist for H1
messages but it is possible in H2.

This patch should solve the issue #1684. It must be backported as far as
2.4.
src/mux_h1.c