]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: htpp-ana/stats: Specify that HTX redirect messages have a C-L header
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 17 Oct 2023 09:43:43 +0000 (11:43 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 17 Oct 2023 16:11:04 +0000 (18:11 +0200)
commitd0b04920d1497e6d953cb1b0be96599b4cf26cd5
tree8fc80193c2cab3f0c23492d2a5e01154caa525c6
parente9f6e8e7f6fedb7758e395437c456d602497a2b1
BUG/MINOR: htpp-ana/stats: Specify that HTX redirect messages have a C-L header

Redirect responses sent during the HTTP analysis have no payload. However
there is still a "Content-Length" header. It is important to set the
corresponding flag on the HTX start-line to be sure to preserve this header
when the reponse is sent to the client. The same is true with the stats
applet, when it returns a redirect responses.

It is especially important because we no ignore in-fly modifications of
"Content-Length" or "Transfer-Encoding" headers without updating the HTX
start-line flags.

This patch may be backported to all stable versions but it is probably
useless because only the 2.9-dev is affected by the bug.
src/http_ana.c
src/stats.c