]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: hlua: Fill the request array on the first HTTP applet run
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 17 Jul 2025 09:58:29 +0000 (11:58 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 24 Jul 2025 10:05:38 +0000 (12:05 +0200)
commit327272bd8fefdb3b521b3a15e507d23169d5020f
tree2405c02e317836f7b501201595097017daf67020
parent54622a27fe47d08783d691f9283532ba943c06aa
MINOR: hlua: Fill the request array on the first HTTP applet run

When a lua HTTP applet is created, a "request" object is created, filled
with the request information (method, path, headers...), to be able to
easily retrieve these information from the script. However, this was done
when thee appctx was created, retrieving the info from the request channel.

To be ale to update the applet to use its own buffer, it is now performed on
the first applet run. Indead, when the applet is created, the info are not
forwarded yet and should not be accessed. Note that for now, information are
still retrieved from the channel.
src/hlua.c