]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: http-client: Test HTX_FL_EOM flag before commiting the HTX buffer
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 8 Jul 2025 06:24:45 +0000 (08:24 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 9 Jul 2025 14:27:24 +0000 (16:27 +0200)
commit4bdb2e5a26587120101234c8f73cbc40d1777656
treea2944e1b48be058e1005fde6e1c19a76fbe10d30
parente4a0d40c62594b4504fd7443158731fef54e040a
BUG/MEDIUM: http-client: Test HTX_FL_EOM flag before commiting the HTX buffer

when htx_to_buf() function is called, if the HTX message is empty, the
buffer is reset. So HTX flags must not be tested after because the info may
be lost.

So now, we take care to test HTX_FL_EOM flag before calling htx_to_buf().

This patch must be backported as far as 2.8.
src/http_client.c