diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2019-12-13 20:19:08 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2019-12-13 20:19:33 +0900 |
commit | 82cc2843a92b286cc13afd0860a4e111d4ea2a0b (patch) | |
tree | a517dedd40d35540930cea7732f5a36e76a549e8 /lib/rubygems/request.rb | |
parent | 26774351dc5f494253ba031e4bc453dc4dddb2cf (diff) | |
download | ruby-82cc2843a92b286cc13afd0860a4e111d4ea2a0b.tar.gz |
Prepare to release RubyGems 3.1.0 final version.
Diffstat (limited to 'lib/rubygems/request.rb')
-rw-r--r-- | lib/rubygems/request.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/rubygems/request.rb b/lib/rubygems/request.rb index 435c7c53cb..b5a14ec34d 100644 --- a/lib/rubygems/request.rb +++ b/lib/rubygems/request.rb @@ -19,6 +19,7 @@ class Gem::Request end def self.proxy_uri(proxy) # :nodoc: + require "uri" 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 + require "uri" uri = URI(Gem::UriFormatter.new(env_proxy).normalize) if uri and uri.user.nil? and uri.password.nil? |