MINOR: h2: Set the BODYLESS_RESP flag on the HTX start-line if necessary
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 10 Oct 2023 14:30:52 +0000 (16:30 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 17 Oct 2023 16:51:13 +0000 (18:51 +0200)
commiteb346074bb52c6c674a839fe67773c4dd058aa22
treefb0c389f8b51cf9aed86b8d50ce62979a8c7fdde
parent2d80eb5b7ad1dc926229b1355f1bd1a077d144f1
MINOR: h2: Set the BODYLESS_RESP flag on the HTX start-line if necessary

When message headers are parsed and an HTX start-line is created, if we
detect the response must not have any payload, a specific flag must be set
on the HTX start-line. It happens for instance for response to HEAD
requests. This flag is useb by the multiplexers to know response payload, if
any, must be silently skipped.

This was not performed when h2 HEADERS frames were decoded. This HTX flag
was specifically added to fix a bug when the splicing is inuse. Thus the H2
multiplexer was not concerned. Because the mux-to-mux fast-forwarding will
be introduced, it is important handle this flag in the H2 multiplexer too.
src/h2.c