Skip to content

Commit 1466a5f

Browse files
committed
use strings for port
1 parent 86920da commit 1466a5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rack/reverse_proxy.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def proxy(env, source_request, matcher)
4747

4848
if options[:preserve_host]
4949
target_request_headers['HOST'] = uri.host
50-
target_request_headers['PORT'] = uri.port unless uri.port == 80
50+
target_request_headers['PORT'] = uri.port.to_s unless uri.port.to_s == 80.to_s
5151
end
5252

5353
target_request_headers['X-Forwarded-Host'] = source_request.host if options[:x_forwarded_host]

0 commit comments

Comments
 (0)