From: Jo-Philipp Wich Date: Thu, 18 Sep 2014 09:34:05 +0000 (+0000) Subject: luci-0.11: backport r10529 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=refs%2Fremotes%2Fluci-0.11;p=oweals%2Fluci.git luci-0.11: backport r10529 --- diff --git a/libs/web/luasrc/http.lua b/libs/web/luasrc/http.lua index c53307a5a..e8430b727 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 = {