Skip to content

Commit d53d915

Browse files
committed
Return nil instead of falling back to default port
1 parent 4853a94 commit d53d915

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/tidewave.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ def origin_allowed_path?(path)
167167
end
168168

169169
def local_port(request)
170-
request.get_header("SERVER_PORT").to_i.nonzero? || request.port
170+
request.get_header("SERVER_PORT").to_i.nonzero?
171171
end
172172

173173
def valid_client_ip?(request)

0 commit comments

Comments
 (0)