]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: mux-h1: Add flags if outgoing msg contains a header about its payload
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 2 Oct 2023 06:25:33 +0000 (08:25 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 4 Oct 2023 13:34:18 +0000 (15:34 +0200)
commitf32e28eddc42cbb5c4b19f1f82458bd6e8277df9
treebb88bb8bac7df58c84084239b10d05b21e06df2e
parent6f6aed92b7be29399fb2cabb4fc92b61c51ff7d4
MINOR: mux-h1: Add flags if outgoing msg contains a header about its payload

If a "Content-length" or "Transfer-Encoding; chunked" headers is found or
inserted in an outgoing message, a specific flag is now set on the H1
stream. H1S_F_HAVE_CLEN is set for "Content-length" header and
H1S_F_HAVE_CHNK for "Transfer-Encoding: chunked".

This will be useful to properly format outgoing messages, even if one of
these headers was removed by hand (with no update of the message meta-data).
include/haproxy/mux_h1-t.h