aboutsummaryrefslogtreecommitdiffstats
path: root/net/httpserver.lua
diff options
context:
space:
mode:
Diffstat (limited to 'net/httpserver.lua')
-rw-r--r--net/httpserver.lua2
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