aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/update.sh
diff options
context:
space:
mode:
authorMike McQuaid2016-04-04 11:46:33 +0100
committerMike McQuaid2016-04-04 12:18:21 +0100
commit77611bafb1dfc68e9cd59fb21163aefa53fccf2c (patch)
treef7be38a5ad3143451608a27bb52cc26d177ff24e /Library/Homebrew/cmd/update.sh
parentac8088304603a95e2ae4d187016a50c36c622605 (diff)
downloadbrew-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.sh2
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")"