]> 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:13:41 +0000 (12:13 +0200)
commit15080d9aae44f80cc9ee1e316128a3fde4b1b805
treebb73d9d260236f30781ce0a34230c9e43d27625e
parentfdb66e6c5e0251e3e0764cc72901d9e672b92c0e
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