Skip to content
Commit a1ee78fa authored by Jo-Philipp Wich's avatar Jo-Philipp Wich
Browse files

luci-lua-runtime: proxy all dispatcher context property accesses



The ucode side dispatcher environment might not be fully populated yet
when the emulated Lua dispatcher is loaded, leading to `context.requested`
and some other properties to be `nil`.

Expose all properties through metatable `__index` lookups instead to
ensure that the Lua side dispatcher always sees the latest values.

Fixes: #6100
Signed-off-by: default avatarJo-Philipp Wich <jo@mein.io>
parent 2be01cbf
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment