# File lib/action_dispatch/http/url.rb, line 45 def port if raw_host_with_port =~ /:(\d+)$/ $1.to_i else standard_port end end