diff options
author | Andre Arko <andre@arko.net> | 2013-01-12 01:07:37 -0800 |
---|---|---|
committer | Andre Arko <andre@arko.net> | 2013-09-28 12:54:21 -0700 |
commit | 780bf6ab93075c136b3246527cbbb92cdb32c436 (patch) | |
tree | 1561381826288c8d0df4c154bce7b6eba88424fd | |
parent | fa0e07b4df59700de838aaa64b892b7772099181 (diff) | |
download | bundler-780bf6ab93075c136b3246527cbbb92cdb32c436.tar.gz |
default requests have "Ruby" in the user-agent
-rw-r--r-- | lib/bundler/fetcher.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/bundler/fetcher.rb b/lib/bundler/fetcher.rb index 0273cd3e6f..c385cf614f 100644 --- a/lib/bundler/fetcher.rb +++ b/lib/bundler/fetcher.rb @@ -240,6 +240,7 @@ module Bundler begin Bundler.ui.debug "Fetching from: #{uri}" req = Net::HTTP::Get.new uri.request_uri + req["User-Agent"] = self.class.user_agent req.basic_auth(uri.user, uri.password) if uri.user if defined?(Net::HTTP::Persistent) response = @connection.request(uri, req) |