From d6b19a1b1b9b46e7c8fe7abe6c1aa234f3fd8096 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Thu, 23 Apr 2009 21:04:56 +0100 Subject: net.httpserver: Fix traceback when sending response to a destroyed request --- net/httpserver.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'net') 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); -- cgit v1.2.3