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 c53307a5a1eb4e2b3d72fabc6f2e0379c833eabd..e8430b727650025f0343a8330a36562c829ab4e5 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 = {