aboutsummaryrefslogtreecommitdiffstats
path: root/net/http.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2014-09-02 22:33:11 +0200
committerKim Alvefur <zash@zash.se>2014-09-02 22:33:11 +0200
commitab57f00b936342c599aadf901f85e5b29ee91baa (patch)
treeb4ffbcba45331b7fa86a9e1d1881e94b8fef9d42 /net/http.lua
parente41db733ad45978e4b3193af348c220623125a0e (diff)
parent3d6dafb89a05a6aad4d102266172e377d9491360 (diff)
downloadprosody-ab57f00b936342c599aadf901f85e5b29ee91baa.tar.gz
prosody-ab57f00b936342c599aadf901f85e5b29ee91baa.zip
Merge 0.9->0.10
Diffstat (limited to 'net/http.lua')
-rw-r--r--net/http.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/net/http.lua b/net/http.lua
index ab9ec7b6..0c0ef967 100644
--- a/net/http.lua
+++ b/net/http.lua
@@ -72,6 +72,10 @@ function listener.ondisconnect(conn, err)
requests[conn] = nil;
end
+function listener.ondetach(conn)
+ requests[conn] = nil;
+end
+
local function request_reader(request, data, err)
if not request.parser then
local function error_cb(reason)