diff options
author | Steven Barth <steven@midlink.org> | 2008-06-23 18:17:02 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-06-23 18:17:02 +0000 |
commit | 4f630d647c7191ac9d8fd2dfcc8e93746faf391a (patch) | |
tree | 76bb12773e833e38c69ee43f006b78f0e84ab748 /libs/web/luasrc/http.lua | |
parent | a038da390d7fd3a75b5a1045afbb4d9782556c57 (diff) |
* Introducing LuCI HTTPD as testing environment
* Several coroutine-safety fixes
Diffstat (limited to 'libs/web/luasrc/http.lua')
-rw-r--r-- | libs/web/luasrc/http.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libs/web/luasrc/http.lua b/libs/web/luasrc/http.lua index 2bd914429..5263bfaad 100644 --- a/libs/web/luasrc/http.lua +++ b/libs/web/luasrc/http.lua @@ -53,13 +53,14 @@ function Request.__init__(self, env, sourcein, sinkerr) setmetatable(self.message.params, {__index = function(tbl, key) + setmetatable(tbl, nil) + luci.http.protocol.parse_message_body( self.input, self.message, self.filehandler ) - - setmetatable(tbl, nil) + return rawget(tbl, key) end }) |