]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: mux-h1: Skip trailers for non-chunked outgoing messages
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 27 Jun 2019 15:40:14 +0000 (17:40 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 1 Jul 2019 14:24:01 +0000 (16:24 +0200)
commit5433a0b0215c791b4165bddd360a254fa141c6e9
treeb831d90a17a214939e1f6896c4b7f37d78d1090d
parent2df8cad0fea2d1a4ca8dd58f384df3c3c3f5d7ee
BUG/MINOR: mux-h1: Skip trailers for non-chunked outgoing messages

Unlike H1, H2 messages may contains trailers while the header "Content-Length"
is set. Indeed, because of the framed structure of HTTP/2, it is no longer
necessary to use the chunked transfer encoding. So Trailing HEADERS frames,
after all DATA frames, may be added on messages with an explicit content length.

But in H1, it is impossible to have trailers on non-chunked messages. So when
outgoing messages are formatted by the H1 multiplexer, if the message is not
chunked, all trailers must be dropped.

This patch must be backported to 2.0 and 1.9. However, the patch will have to be
adapted for the 1.9.
src/mux_h1.c