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.

(cherry picked from commit d934e8d963fe1b88edc22a7277a7389005dd7856)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit 93b865a56be1550c298651cf3973fd296a944a62)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
1 file changed