Software /
code /
prosody
Changeset
7518:829ebe806e82
mod_http: Fix indentation in redir_handler
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Sun, 24 Jul 2016 17:36:53 +0100 |
parents | 7517:e81ceca529c5 |
children | 7523:3c40b972260e |
files | plugins/mod_http.lua |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_http.lua Sun Jul 24 17:36:15 2016 +0100 +++ b/plugins/mod_http.lua Sun Jul 24 17:36:53 2016 +0100 @@ -47,9 +47,9 @@ 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