diff options
author | Matthew Wild <mwild1@gmail.com> | 2010-02-19 03:21:20 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2010-02-19 03:21:20 +0000 |
commit | 79382a23050436d490bfd030ca2cc200f371bd2b (patch) | |
tree | 91be88b1473a9cb03b261a8dabaf77aee75c47d2 /net/http.lua | |
parent | 1e2242d3194b34c8451985dec895d30217a82d2f (diff) | |
download | prosody-79382a23050436d490bfd030ca2cc200f371bd2b.tar.gz prosody-79382a23050436d490bfd030ca2cc200f371bd2b.zip |
net.http: Don't re-destroy a request when the connection is closed
Diffstat (limited to 'net/http.lua')
-rw-r--r-- | net/http.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/http.lua b/net/http.lua index c1cfae02..b533caae 100644 --- a/net/http.lua +++ b/net/http.lua @@ -43,6 +43,7 @@ local function request_reader(request, data, startpos) elseif request.state ~= "completed" then -- Error.. connection was closed prematurely request.callback("connection-closed", 0, request); + return; end destroy_request(request); request.body = nil; |