method

apply_auth

apply_auth(uri, auth)
private

No documentation available.

# File lib/bundler/source/rubygems/remote.rb, line 45
        def apply_auth(uri, auth)
          if auth && uri.userinfo.nil?
            uri = uri.dup
            uri.userinfo = auth
          end

          uri
        rescue URI::InvalidComponentError
          error_message = "Please CGI escape your usernames and passwords before "                            "setting them for authentication."
          raise HTTPError.new(error_message)
        end