]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: stats: Don't state the 303 redirect response is chunked
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 17 May 2024 13:42:46 +0000 (15:42 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 17 May 2024 14:33:53 +0000 (16:33 +0200)
commit45a45c917ae1cd800ade8344ec4ecdd9de55e9fc
treecb62e0bbfade5c86b5e8c182589d55d69e937626
parente362b076b1d0f11966d302bc76199a40efe7a6a0
BUG/MINOR: stats: Don't state the 303 redirect response is chunked

Start-line flags for 303-See-Other response returned by the stats applet are
not properly set. Indeed, the reponse has a "content-length" header but both
HTX_SL_F_CHNK and HTX_SL_F_CLEN flags are set. Because of this bug, the
reponse is considered as chunked. So, let's remove HTX_SL_F_CHNK flag.

And also add HTX_SL_F_BODYLESS flag because there is no payload
("content-length" header is always set to 0).

This patch must be backported to all stable versions. On the 2.8 and lower
versions, the commit d0b04920d1 ("BUG/MINOR: htpp-ana/stats: Specify that
HTX redirect messages have a C-L header") must be backported first.
src/stats-html.c