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/cmd/update.sh | |
| 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/cmd/update.sh')
| -rw-r--r-- | Library/Homebrew/cmd/update.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/update.sh b/Library/Homebrew/cmd/update.sh index 49dcb5038..d6ce41b00 100644 --- a/Library/Homebrew/cmd/update.sh +++ b/Library/Homebrew/cmd/update.sh @@ -306,7 +306,7 @@ EOS # (so the API does not return 304: unmodified). UPSTREAM_SHA_HTTP_CODE="$(curl --silent '--max-time' 3 \ --output /dev/null --write-out "%{http_code}" \ - --user-agent "Homebrew $HOMEBREW_VERSION" \ + --user-agent "$HOMEBREW_USER_AGENT_CURL" \ --header "Accept: application/vnd.github.chitauri-preview+sha" \ --header "If-None-Match: \"$UPSTREAM_BRANCH_LOCAL_SHA\"" \ "https://api.github.com/repos/$UPSTREAM_REPOSITORY/commits/$UPSTREAM_BRANCH")" |
