Class: Bundler::Fetcher::GemRemoteFetcher

Inherits:
Gem::RemoteFetcher
  • Object
show all
Defined in:
lib/bundler/fetcher/gem_remote_fetcher.rb

Instance Method Summary collapse

Instance Method Details

#request(*args) ⇒ Object



8
9
10
11
12
13
# File 'lib/bundler/fetcher/gem_remote_fetcher.rb', line 8

def request(*args)
  super do |req|
    req.delete("User-Agent") if headers["User-Agent"]
    yield req if block_given?
  end
end