]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: hlua: Skip headers when a receive is performed on an HTTP applet
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 18 Jul 2025 09:14:26 +0000 (11:14 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 24 Jul 2025 10:13:41 +0000 (12:13 +0200)
commit5b5ecf848dbe7467afb67ea70951b4e56f39dab5
treeea254ae30a3bcd5a596de1c4437984e945347331
parent8258c8166a61870030a620930193998960109dc0
BUG/MINOR: hlua: Skip headers when a receive is performed on an HTTP applet

When an HTTP applet tries to retrieve data, the request headers are still in
the buffer. But, instead of being silently removed, their size is removed
from the amount of data retrieved. When the request payload is fully
retrieved, it is not an issue. But it is a problem when a length is
specified. The data are shorten from the headers size.

So now, we take care to silently remove headers.

This patch must be backported to all stable versions.
src/hlua.c