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>
Tue, 26 Aug 2025 06:32:18 +0000 (08:32 +0200)
commit0c62785f34fd14d612985e0a8b01d57540b136f2
treea829eaacdb889ce57d4d6b159bbfb7ee8efeafac
parent8f01f82423f1da7a47f06a51bff54d185572c16a
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.

(cherry picked from commit 5b5ecf848dbe7467afb67ea70951b4e56f39dab5)
Signed-off-by: Willy Tarreau <w@1wt.eu>
(cherry picked from commit 8daaeb14e8e89c936a82a4ddff9c54dc1c93b92b)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
src/hlua.c