projects
/
oweals
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2898d80
)
http: ensure .content() works by default
author
Jo-Philipp Wich
<jow@openwrt.org>
Thu, 18 Sep 2014 09:29:30 +0000
(09:29 +0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Thu, 18 Sep 2014 09:29:30 +0000
(09:29 +0000)
filehandler was always set, so the default handler was never being
called. This led to calls to http.content() always returning nil.
Signed-off-by: Karl Palsson <karlp@remake.is>
modules/base/luasrc/http.lua
patch
|
blob
|
history
diff --git
a/modules/base/luasrc/http.lua
b/modules/base/luasrc/http.lua
index c53307a5a1eb4e2b3d72fabc6f2e0379c833eabd..e8430b727650025f0343a8330a36562c829ab4e5 100644
(file)
--- a/
modules/base/luasrc/http.lua
+++ b/
modules/base/luasrc/http.lua
@@
-42,8
+42,8
@@
function Request.__init__(self, env, sourcein, sinkerr)
self.error = sinkerr
- -- File handler
- self.filehandler =
function() end
+ -- File handler
nil by default to let .content() work
+ self.filehandler =
nil
-- HTTP-Message table
self.message = {