]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: http-fetch: Use pointer to HTX DATA block when retrieving HTX body
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 9 Feb 2026 10:11:41 +0000 (11:11 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 18 Feb 2026 12:26:21 +0000 (13:26 +0100)
commitee309bafcfae0dd93de5a49063c534461d5a2f04
treebfc15653f7fbc184758595a49b2135e86df426fa
parentf559c202fbd2c0042621d1a4bf9386378e4fb434
MINOR: http-fetch: Use pointer to HTX DATA block when retrieving HTX body

In sample fetch functions retrieving the message payload (req.body,
res.body...), instead of copying the payload in a trash buffer, we know
directely return a pointer the payload in the HTX message. To do so, we must
be sure there is only one HTX DATA block. Thanks to previous patches, it is
possible. However, we must take care to perform a defragmentation if
necessary.
src/http_fetch.c