summaryrefslogtreecommitdiff
path: root/libs/web/luasrc/http.lua
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2014-09-18 09:34:05 +0000
committerJo-Philipp Wich <jow@openwrt.org>2014-09-18 09:34:05 +0000
commit668f8ed7a09f3118038e604a234651250c0807e1 (patch)
tree68d01b7c3c4766e3b256a63a2c134c8bb3ec002c /libs/web/luasrc/http.lua
parent31daa1b90d60f74327c4c45b8dc4fca025a01afd (diff)
luci-0.11: backport r10529luci-0.11
Diffstat (limited to 'libs/web/luasrc/http.lua')
-rw-r--r--libs/web/luasrc/http.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/web/luasrc/http.lua b/libs/web/luasrc/http.lua
index c53307a5a1..e8430b7276 100644
--- a/libs/web/luasrc/http.lua
+++ b/libs/web/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 = {