diff options
| author | Gautham Goli | 2017-10-21 01:39:04 +0530 |
|---|---|---|
| committer | Gautham Goli | 2017-10-21 01:48:00 +0530 |
| commit | bdc7eba4b3459ea0f6fefb5a829da649134d7f8d (patch) | |
| tree | f95203c5920ac4210033c77ce5d64cac39da0732 /Library/Homebrew/dev-cmd/pull.rb | |
| parent | 7fa51f71f1a8a21b905bafc1fb4106f0222d654f (diff) | |
| parent | c4e8c7906d12399b34188cd3395b8f9d30dc89b3 (diff) | |
| download | brew-bdc7eba4b3459ea0f6fefb5a829da649134d7f8d.tar.bz2 | |
Merge branch 'master' into audit_line_rubocop_part_4_rebase_attempt_1
Diffstat (limited to 'Library/Homebrew/dev-cmd/pull.rb')
| -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})!" |
