]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: h1-htx: Increment body len when parsing a payload with no xfer length
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 18 Sep 2025 06:00:26 +0000 (08:00 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 8 Oct 2025 09:01:36 +0000 (11:01 +0200)
commitc9bc18c0bf897e64d84e3b757b3ac04da13c36e6
treefae318930d49146087dc06e43ef5f1237981861d
parentc0b6db283058791287974a62f0f70a50d2602caa
MINOR: h1-htx: Increment body len when parsing a payload with no xfer length

In the H1 parseur, the body length was only incremented when the transfer
length was known. So when the content-length was specified or when the
transfer-encoding value was set to "chunk".

Now for messages with unknown transfer length, it is also incremented. It is
mandatory to be able to remove the extra field from the HTX message.
src/h1_htx.c