diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2014-09-18 09:29:30 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2014-09-18 09:29:30 +0000 |
commit | a16c0c320086d3814abc52ddbf3d60b6b5a291a3 (patch) | |
tree | 9775d51f0287d6fa1db24e7e2e585d86a1a07bf9 | |
parent | 2898d8072f0e1dbd03413edb26f188602a216a14 (diff) |
http: ensure .content() works by default
filehandler was always set, so the default handler was never being
called. This led to calls to http.content() always returning nil.
Signed-off-by: Karl Palsson <karlp@remake.is>
-rw-r--r-- | modules/base/luasrc/http.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/base/luasrc/http.lua b/modules/base/luasrc/http.lua index c53307a5a..e8430b727 100644 --- a/modules/base/luasrc/http.lua +++ b/modules/base/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 = { |