aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/http/server.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/http/server.lua b/net/http/server.lua
index f563d330..0070367a 100644
--- a/net/http/server.lua
+++ b/net/http/server.lua
@@ -197,6 +197,7 @@ local function handle_result(request, response, result)
result:next(function (ret)
handle_result(request, response, ret);
end, function (err)
+ response.status_code = 500;
handle_result(request, response, err or 500);
end);
return true;