diff options
Diffstat (limited to 'net/httpserver.lua')
-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 b9ac7971..b16e7f3a 100644 --- a/net/httpserver.lua +++ b/net/httpserver.lua @@ -96,7 +96,7 @@ local function call_callback(request, err) local response = callback(request.method, request.body and t_concat(request.body), request); if response then - if response == true then + 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 |