diff options
author | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-08-28 08:31:28 +0000 |
---|---|---|
committer | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-08-28 08:31:28 +0000 |
commit | c5da5b1ea27ec693dd09e9d586e913da1d5ba4b6 (patch) | |
tree | 8624c192a757d272b5ebae46dd9691b7994da0c5 /lib/rubygems/remote_fetcher.rb | |
parent | 1a1930180c66b291c89d486b984f8bf5237d6918 (diff) | |
download | ruby-c5da5b1ea27ec693dd09e9d586e913da1d5ba4b6.tar.gz |
Merge rubygems-2.6.13.
see details for this update:
http://blog.rubygems.org/2017/08/27/2.6.13-released.html
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59672 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rubygems/remote_fetcher.rb')
-rw-r--r-- | lib/rubygems/remote_fetcher.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rubygems/remote_fetcher.rb b/lib/rubygems/remote_fetcher.rb index e6a13d4b8c..8f0cf0b402 100644 --- a/lib/rubygems/remote_fetcher.rb +++ b/lib/rubygems/remote_fetcher.rb @@ -110,7 +110,7 @@ class Gem::RemoteFetcher else target = res.target.to_s.strip - if /\.#{Regexp.quote(host)}\z/ =~ target + if URI("http://" + target).host.end_with?(".#{host}") return URI.parse "#{uri.scheme}://#{target}#{uri.path}" end |