mod_http_authentication/mod_http_authentication.lua
changeset 3446 05725785e3a6
parent 2341 c6e86b74f62e
--- a/mod_http_authentication/mod_http_authentication.lua	Mon Jan 14 10:56:19 2019 +0100
+++ b/mod_http_authentication/mod_http_authentication.lua	Tue Jan 15 15:01:04 2019 +0100
@@ -9,7 +9,7 @@
 
 module:wrap_object_event(server._events, false, function (handlers, event_name, event_data)
 	local request = event_data.request;
-	if request and not unauthed_endpoints[request.path] then
+	if event_name ~= "http-error" and request and not unauthed_endpoints[request.path] then
 		local response = event_data.response;
 		local headers = request.headers;
 		if not headers.authorization then