diff options
| author | Viktor Szakats | 2017-10-10 13:35:49 +0000 |
|---|---|---|
| committer | Viktor Szakats | 2017-10-10 13:35:49 +0000 |
| commit | 811f5fd145d68393e056b6f6c584bf7a198b6986 (patch) | |
| tree | ad1212a799d6b5622afef28cdc0b9ef613ca2a4a | |
| parent | 56458f03fcc68ef6d8ee3ee4a7c1d16021aa5800 (diff) | |
| download | brew-811f5fd145d68393e056b6f6c584bf7a198b6986.tar.bz2 | |
pull: fix bintray verification failing due to redirection
| -rw-r--r-- | Library/Homebrew/dev-cmd/pull.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/dev-cmd/pull.rb b/Library/Homebrew/dev-cmd/pull.rb index 8cb270303..aa3c9a9d7 100644 --- a/Library/Homebrew/dev-cmd/pull.rb +++ b/Library/Homebrew/dev-cmd/pull.rb @@ -560,7 +560,7 @@ module Homebrew req = Net::HTTP::Head.new bottle_info.url req.initialize_http_header "User-Agent" => HOMEBREW_USER_AGENT_RUBY res = http.request req - break if res.is_a?(Net::HTTPSuccess) + break if res.is_a?(Net::HTTPSuccess) || res.code == "302" unless res.is_a?(Net::HTTPClientError) raise "Failed to find published #{f} bottle at #{url} (#{res.code} #{res.message})!" |
