method

normalize_port

normalize_port(port, protocol)
private

No documentation available.

# File actionpack/lib/action_dispatch/http/url.rb, line 156
        def normalize_port(port, protocol)
          return unless port

          case protocol
          when "//" then yield port
          when "https://"
            yield port unless port.to_i == 443
          else
            yield port unless port.to_i == 80
          end
        end