diff --git a/Library/Homebrew/cmd/update.sh b/Library/Homebrew/cmd/update.sh index 6e68cdea8c..30ba7cec96 100644 --- a/Library/Homebrew/cmd/update.sh +++ b/Library/Homebrew/cmd/update.sh @@ -482,7 +482,7 @@ EOS fi UPSTREAM_SHA_HTTP_CODE="$("$HOMEBREW_CURL" --silent --max-time 3 \ - --output /dev/null --write-out "%{http_code}" \ + --location --output /dev/null --write-out "%{http_code}" \ --dump-header "$DIR/.git/GITHUB_HEADERS" \ --user-agent "$HOMEBREW_USER_AGENT_CURL" \ --header "Accept: $GITHUB_API_ACCEPT" \