mod_http: Fix indentation in redir_handler

This commit is contained in:
Emmanuel Gil Peyrot 2016-07-24 17:36:53 +01:00
parent 6487d371ac
commit 2368529f51

View file

@ -47,9 +47,9 @@ end
local function redir_handler(event)
event.response.headers.location = event.request.path.."/";
if event.request.url.query then
event.response.headers.location = event.response.headers.location .. "?" .. event.request.url.query
end
if event.request.url.query then
event.response.headers.location = event.response.headers.location .. "?" .. event.request.url.query
end
return 301;
end