luci-0.11: backport r10529 luci-0.11 luci-0.11
authorJo-Philipp Wich <jow@openwrt.org>
Thu, 18 Sep 2014 09:34:05 +0000 (09:34 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Thu, 18 Sep 2014 09:34:05 +0000 (09:34 +0000)
libs/web/luasrc/http.lua

index c53307a..e8430b7 100644 (file)
@@ -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 = {