# HG changeset patch # User Matthew Wild # Date 1240517096 -3600 # Node ID c04b40a0740b6a491e52d456ebf1be91b4827002 # Parent a3429542631d1b3d497ff5c7aafdbd3835466907 net.httpserver: Fix traceback when sending response to a destroyed request diff -r a3429542631d -r c04b40a0740b net/httpserver.lua --- a/net/httpserver.lua Thu Apr 23 21:04:07 2009 +0100 +++ b/net/httpserver.lua Thu Apr 23 21:04:56 2009 +0100 @@ -99,7 +99,7 @@ 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);