diff options
author | Matthew Wild <mwild1@gmail.com> | 2009-04-23 21:04:56 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2009-04-23 21:04:56 +0100 |
commit | d6b19a1b1b9b46e7c8fe7abe6c1aa234f3fd8096 (patch) | |
tree | eac0600a54d130b16810d2676e4d68128fab16bf | |
parent | 37db6110c31027f22f3a5eef3730762690ebb446 (diff) | |
download | prosody-d6b19a1b1b9b46e7c8fe7abe6c1aa234f3fd8096.tar.gz prosody-d6b19a1b1b9b46e7c8fe7abe6c1aa234f3fd8096.zip |
net.httpserver: Fix traceback when sending response to a destroyed request
-rw-r--r-- | net/httpserver.lua | 2 |
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); |