aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-04-23 21:04:56 +0100
committerMatthew Wild <mwild1@gmail.com>2009-04-23 21:04:56 +0100
commitd6b19a1b1b9b46e7c8fe7abe6c1aa234f3fd8096 (patch)
treeeac0600a54d130b16810d2676e4d68128fab16bf
parent37db6110c31027f22f3a5eef3730762690ebb446 (diff)
downloadprosody-d6b19a1b1b9b46e7c8fe7abe6c1aa234f3fd8096.tar.gz
prosody-d6b19a1b1b9b46e7c8fe7abe6c1aa234f3fd8096.zip
net.httpserver: Fix traceback when sending response to a destroyed request
-rw-r--r--net/httpserver.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/httpserver.lua b/net/httpserver.lua
index db0cbc3e..906ffaf7 100644
--- a/net/httpserver.lua
+++ b/net/httpserver.lua
@@ -99,7 +99,7 @@ local function call_callback(request, err)
if response == true and not request.destroyed then
-- Keep connection open, we will reply later
log("warn", "Request %s left open, on_destroy is %s", request.id, tostring(request.on_destroy));
- else
+ elseif response ~= true then
-- Assume response
send_response(request, response);
destroy_request(request);