Merge
authorMatthew Wild <mwild1@gmail.com>
Mon, 7 Mar 2016 13:43:05 +0000 (13:43 +0000)
committerMatthew Wild <mwild1@gmail.com>
Mon, 7 Mar 2016 13:43:05 +0000 (13:43 +0000)
plugins/mod_http.lua

index 086887fbcc9a9b63ccd078c3a65804481d12a419..c8ca563760939cee015e814b471dcc2b6281002c 100644 (file)
@@ -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