]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: hlua: Use the buffer instead of the HTTP message to get HTTP headers
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 18 Jul 2025 10:07:05 +0000 (12:07 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 24 Jul 2025 10:13:41 +0000 (12:13 +0200)
commit3e456be5ae5ce5b84169c2b0adcfb7d3b10be55c
tree157c5dd5c3f25a5666b4967d0f44b4c273f72316
parent15080d9aae44f80cc9ee1e316128a3fde4b1b805
MINOR: hlua: Use the buffer instead of the HTTP message to get HTTP headers

hlua_http_get_headers() function was using the HTTP message from the stream
TXN to retrieve headers from a message. However, this will be an issue to
update the lua HTTP applet to use its own buffers. Indeed, in that case,
information from the channels will be unavailable. So now,
hlua_http_get_headers() is now using a buffer containing an HTX message. It
is just an API change bacause, internally, the function was already
manipulation an HTX message.
src/hlua.c