summaryrefslogtreecommitdiff
path: root/lib/rubygems/request.rb
diff options
context:
space:
mode:
-rw-r--r--lib/rubygems/request.rb2
1 files changed, 2 insertions, 0 deletions
@@ -19,6 +19,7 @@ class Gem::Request
end
def self.proxy_uri(proxy) # :nodoc:
case proxy
when :no_proxy then nil
when URI::HTTP then proxy
@@ -173,6 +174,7 @@ class Gem::Request
:no_proxy : get_proxy_from_env('http')
end
uri = URI(Gem::UriFormatter.new(env_proxy).normalize)
if uri and uri.user.nil? and uri.password.nil?