aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/mod_http_errors.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/mod_http_errors.lua b/plugins/mod_http_errors.lua
index b5d0f7fb..8b1db4b7 100644
--- a/plugins/mod_http_errors.lua
+++ b/plugins/mod_http_errors.lua
@@ -98,6 +98,7 @@ local icon = [[
module:hook_object_event(server, "http-error", function (event)
local request, response = event.request, event.response;
if request and response and request.path == "/" and response.status_code == 404 then
+ response.status_code = 200;
response.headers.content_type = "text/html; charset=utf-8";
local message = messages["/"];
return render(html, {