We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent adc6a6a commit 37b25eeCopy full SHA for 37b25ee
lib/rack/reverse_proxy.rb
@@ -79,7 +79,7 @@ def proxy(env, source_request, matcher)
79
80
# Replace the location header with the proxy domain
81
if response_headers['location'] && options[:replace_response_host]
82
- response_location = URI(response_headers['location'])
+ response_location = URI(response_headers['location'][0])
83
response_location.host = source_request.host
84
response_headers['location'] = response_location.to_s
85
end
0 commit comments