Changeset

7248:5e1fe4f0eb9c

Merge
author Matthew Wild <mwild1@gmail.com>
date Mon, 07 Mar 2016 13:43:05 +0000
parents 7247:44b39c02eb33 (diff) 7246:80923a1a8fe1 (current diff)
children 7251:b74421fe417a
files
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_http.lua	Mon Mar 07 10:59:37 2016 +0100
+++ b/plugins/mod_http.lua	Mon Mar 07 13:43:05 2016 +0000
@@ -47,6 +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
 	return 301;
 end