From 6cf7ca7a863b099ee8382a474a8ca53519c05b36 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Sun, 24 Jul 2016 17:36:53 +0100 Subject: mod_http: Fix indentation in redir_handler --- plugins/mod_http.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/mod_http.lua b/plugins/mod_http.lua index 2178e2e8..81417cad 100644 --- a/plugins/mod_http.lua +++ b/plugins/mod_http.lua @@ -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 -- cgit v1.2.3