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 86920da commit 1466a5fCopy full SHA for 1466a5f
lib/rack/reverse_proxy.rb
@@ -47,7 +47,7 @@ def proxy(env, source_request, matcher)
47
48
if options[:preserve_host]
49
target_request_headers['HOST'] = uri.host
50
- target_request_headers['PORT'] = uri.port unless uri.port == 80
+ target_request_headers['PORT'] = uri.port.to_s unless uri.port.to_s == 80.to_s
51
end
52
53
target_request_headers['X-Forwarded-Host'] = source_request.host if options[:x_forwarded_host]
0 commit comments