diff options
| author | Mike McQuaid | 2016-04-04 11:46:33 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2016-04-04 12:18:21 +0100 |
| commit | 77611bafb1dfc68e9cd59fb21163aefa53fccf2c (patch) | |
| tree | f7be38a5ad3143451608a27bb52cc26d177ff24e /Library/Homebrew/global.rb | |
| parent | ac8088304603a95e2ae4d187016a50c36c622605 (diff) | |
| download | brew-77611bafb1dfc68e9cd59fb21163aefa53fccf2c.tar.bz2 | |
Make Homebrew user agent consistent, use a slash.
Generally it seems user agents are all `software/version` but ours is
not. Also, set the user agent in a way that it's shared between Bash
and Ruby code.
Closes https://github.com/Homebrew/legacy-homebrew/pull/50480.
Diffstat (limited to 'Library/Homebrew/global.rb')
| -rw-r--r-- | Library/Homebrew/global.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Library/Homebrew/global.rb b/Library/Homebrew/global.rb index cd0baf742..e6b7f7e5d 100644 --- a/Library/Homebrew/global.rb +++ b/Library/Homebrew/global.rb @@ -26,7 +26,8 @@ else end RUBY_BIN = RUBY_PATH.dirname -HOMEBREW_USER_AGENT = "Homebrew #{HOMEBREW_VERSION} (Ruby #{RUBY_VERSION}-#{RUBY_PATCHLEVEL}; #{OS_VERSION})" +HOMEBREW_USER_AGENT_CURL = ENV["HOMEBREW_USER_AGENT_CURL"] +HOMEBREW_USER_AGENT_RUBY = "#{ENV["HOMEBREW_USER_AGENT"]} ruby/#{RUBY_VERSION}-p#{RUBY_PATCHLEVEL}" HOMEBREW_CURL_ARGS = "-f#LA" |
