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>
This commit is contained in:
parent
2898d8072f
commit
a16c0c3200
1 changed files with 2 additions and 2 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue