keep query string when redirecting in rewrite middleware
This commit is contained in:
parent
18b9739691
commit
62b876d2e1
|
@ -40,6 +40,7 @@ class Travis::Api::App
|
||||||
end
|
end
|
||||||
|
|
||||||
def force_redirect(path)
|
def force_redirect(path)
|
||||||
|
path += "?#{request.query_string}" unless request.query_string.empty?
|
||||||
response.body = ''
|
response.body = ''
|
||||||
response['Content-Length'] = '0'
|
response['Content-Length'] = '0'
|
||||||
response['Content-Type'] = ''
|
response['Content-Type'] = ''
|
||||||
|
|
Loading…
Reference in New Issue
Block a user