diff options
author | daurnimator <quae@daurnimator.com> | 2016-02-15 16:28:22 +1100 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2016-02-15 16:28:22 +1100 |
commit | d7ffd11752a2867699831bc761a5f869eb91b400 (patch) | |
tree | 4c5855b2d92d47b5424c9d86a97115bb198274e7 /plugins | |
parent | 41d0ddcf70e0f04dec8f4fc7e7485b250eeb7d9d (diff) | |
download | prosody-d7ffd11752a2867699831bc761a5f869eb91b400.tar.gz prosody-d7ffd11752a2867699831bc761a5f869eb91b400.zip |
plugins/mod_http: Keep query string over automatic redirects
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_http.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/mod_http.lua b/plugins/mod_http.lua index 086887fb..c8ca5637 100644 --- a/plugins/mod_http.lua +++ b/plugins/mod_http.lua @@ -47,6 +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 return 301; end |