]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: hlua: Always return nil if there is no data to dup for HTTP messages
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 21 Jul 2026 12:06:26 +0000 (14:06 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 24 Jul 2026 09:58:24 +0000 (11:58 +0200)
commit80520e52dd445f9fdffd6956e59d52ac9ca74386
tree9b805c0891bc2bba9c38311b73dfe13eab4740a2
parentde3b107cb11a4f6f6464804f1c6ceebbd0490f54
BUG/MINOR: hlua: Always return nil if there is no data to dup for HTTP messages

In _hlua_http_msg_dup(), we must always return nil if no data was
duplicated. The fact the end of the message was reached or not should not
interfere. So let's remove the extra condition on HTX_FL_EOM flag and always
return nil if no data was duplicated.

This patch could be backported to all supported versions.
src/hlua.c