aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2016-07-24 17:36:53 +0100
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2016-07-24 17:36:53 +0100
commit2368529f517e1b3c1a038da50d569b112f61977c (patch)
treebc31b07c3006779c3f197374bce5246a4d9c431a /plugins
parent6487d371acf4aec70cf51ef8fcb44cfe06c23e76 (diff)
downloadprosody-2368529f517e1b3c1a038da50d569b112f61977c.tar.gz
prosody-2368529f517e1b3c1a038da50d569b112f61977c.zip
mod_http: Fix indentation in redir_handler
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_http.lua6
1 files 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