Flowdock
method

normalize_port

Importance_0
Ruby on Rails latest stable (v4.2.1) - 0 notes - Class: ActionDispatch::Http::URL
normalize_port(port, protocol) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# 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
Register or log in to add new notes.