diff options
author | Jo-Philipp Wich <jo@mein.io> | 2022-09-19 14:20:27 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2022-10-25 01:03:37 +0200 |
commit | cea2c3578efe7ab36219f06985d01a4771aeb070 (patch) | |
tree | 1ddd734e18b305a060651c4cbd29ca1c9c456123 /libs | |
parent | d9dcefd2aa45ff123aa536d5e883b17a6cd8a9b6 (diff) |
luci-lib-base: forward luci.http.context.request.message to ucode
Some existing LuCI application code accesses the
`luci.http.context.request.message.params` HTTP parameter table directly.
Forward the `luci.http.context.request.message` object to the ucode
`luci.http.message` instance in order to properly support this.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'libs')
-rw-r--r-- | libs/luci-lib-base/luasrc/http.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/luci-lib-base/luasrc/http.lua b/libs/luci-lib-base/luasrc/http.lua index 06547ae2ce..3b0865082d 100644 --- a/libs/luci-lib-base/luasrc/http.lua +++ b/libs/luci-lib-base/luasrc/http.lua @@ -140,5 +140,6 @@ context = { content = function(self, ...) return content(...) end; getcookie = function(self, ...) return getcookie(...) end; setfilehandler = function(self, ...) return setfilehandler(...) end; + message = L.http.message } } |