diff options
Diffstat (limited to 'lib/bundler/rubygems_integration.rb')
-rw-r--r-- | lib/bundler/rubygems_integration.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/bundler/rubygems_integration.rb b/lib/bundler/rubygems_integration.rb index b5ae60d5ed..9750d98bb3 100644 --- a/lib/bundler/rubygems_integration.rb +++ b/lib/bundler/rubygems_integration.rb @@ -586,7 +586,8 @@ module Bundler uri = Bundler.settings.mirror_for(uri) proxy = configuration[:http_proxy] dns = Resolv::DNS.new - fetcher = Gem::RemoteFetcher.new(proxy, dns) + fetcher = Bundler::GemRemoteFetcher.new(proxy, dns) + fetcher.headers = { "X-Gemfile-Source" => spec.remote.original_uri.to_s } if spec.remote.original_uri fetcher.download(spec, uri, path) end |