]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: h2/htx: Set the flag HTX_SL_F_BODYLESS for messages without body
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 18 Feb 2019 09:12:56 +0000 (10:12 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 18 Feb 2019 15:25:06 +0000 (16:25 +0100)
commit44af3cfca343bba1f7e5f096b07781f3ebdb9b8a
treecdb72944485c13357f5a3175534b45e7f3aab9ad
parent37070b2b152d5d66c101b4d03ddc5dbc5c0e9f5d
MINOR: h2/htx: Set the flag HTX_SL_F_BODYLESS for messages without body

This information is usefull to know if a body is expected or not, regardless the
presence or not of the header "Content-Length" and its value. Once the ES flag
is set on the header frame or when the content length is 0, we can safely add
the flag HTX_SL_F_BODYLESS on the HTX start-line.

Among other things, it will help the mux-h1 to know if it should add TE header
or not. It will also help the HTTP compression filter.

This patch must be backported to 1.9 because a bug fix depends on it.
src/h2.c