]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: http-check: Don't set HTX_SL_F_BODYLESS flag with a log-format body
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 28 Feb 2023 17:44:14 +0000 (18:44 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 28 Feb 2023 17:44:15 +0000 (18:44 +0100)
commit0506d9de512291ed2526654800b98a2317a67b6d
tree15a5def198bf59d570edad6d3dec492627166c6a
parentfb5fff19fee40c660f9839f3bb0b40f33d4899e7
BUG/MINOR: http-check: Don't set HTX_SL_F_BODYLESS flag with a log-format body

When the HTTP request of a health-check is forged, we must not pretend there
is no payload, by setting HTX_SL_F_BODYLESS, if a log-format body was
configured.

Indeed, a test on the body length was used but it is only valid for a plain
string. For A log-format string, a list is used. Note it an bug with no
consequence for now.

This patch must be backported as far as 2.2.
src/tcpcheck.c