aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2017-04-30 13:28:32 +0100
committerGitHub2017-04-30 13:28:32 +0100
commit59f78361c98a002ddb807a223ecc50d6199d9f9a (patch)
treea8b9c615c51957c53b985c2cd6ea7515ad00c422 /Library
parent9c8d9681817e4b8220ca771613a625c79846ba44 (diff)
parent7a75de7cb135cfa832acbf58819329cc19b0fe41 (diff)
downloadbrew-59f78361c98a002ddb807a223ecc50d6199d9f9a.tar.bz2
Merge pull request #2566 from zmwangx/pull-fix-check-bintray-mirror
pull: fix status code check in check_bintray_mirror
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/dev-cmd/pull.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/dev-cmd/pull.rb b/Library/Homebrew/dev-cmd/pull.rb
index 0616b990b..9d08da95b 100644
--- a/Library/Homebrew/dev-cmd/pull.rb
+++ b/Library/Homebrew/dev-cmd/pull.rb
@@ -608,7 +608,7 @@ module Homebrew
def check_bintray_mirror(name, url)
headers = curl_output("--connect-timeout", "15", "--head", url)[0]
status_code = headers.scan(%r{^HTTP\/.* (\d+)}).last.first
- return if status_code.start_with?("3")
+ return if status_code.start_with?("2")
opoo "The Bintray mirror #{url} is not reachable (HTTP status code #{status_code})."
opoo "Do you need to upload it with `brew mirror #{name}`?"
end