]> 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, 4 Sep 2026 08:23:47 +0000 (10:23 +0200)
commit7e55f8643f3b152506169a783675df6d5d2aab6e
tree1023a3fa98a3bea12099383093fb753c2fb3e8c4
parent6f59a49d02b282b5bb58e502c5b97bcbe78db084
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