plugins/mod_http.lua
changeset 7250 44b39c02eb33
parent 6969 3e3a83be7e14
child 7362 a5a080c12c96
--- a/plugins/mod_http.lua	Sun Mar 06 18:52:22 2016 +0100
+++ b/plugins/mod_http.lua	Mon Feb 15 16:28:22 2016 +1100
@@ -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