luci-0.12: merge r10529 luci-0.12
authorJo-Philipp Wich <jow@openwrt.org>
Thu, 18 Sep 2014 09:32:59 +0000 (09:32 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Thu, 18 Sep 2014 09:32:59 +0000 (09:32 +0000)
modules/base/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 = {