diff options
| author | Markus Reiter | 2017-08-07 22:13:10 +0200 |
|---|---|---|
| committer | GitHub | 2017-08-07 22:13:10 +0200 |
| commit | 6ef49d8b86e436cb37df1344019189a2f2df0bbb (patch) | |
| tree | c8acbd7b6986db02f8f49b4116fe4f3d594f3d65 /Library/Homebrew/dev-cmd/audit.rb | |
| parent | 69799d97b1e7314912b2ee234dec2c179c5fb969 (diff) | |
| parent | dc5a2c1764b1da3cfa85d8910338eb72cd4da96c (diff) | |
| download | brew-6ef49d8b86e436cb37df1344019189a2f2df0bbb.tar.bz2 | |
Merge pull request #2848 from reitermarkus/refactoring
Refactor SVN and cURL download strategies.
Diffstat (limited to 'Library/Homebrew/dev-cmd/audit.rb')
| -rw-r--r-- | Library/Homebrew/dev-cmd/audit.rb | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/Library/Homebrew/dev-cmd/audit.rb b/Library/Homebrew/dev-cmd/audit.rb index 1f07fa89e..b3e0785a5 100644 --- a/Library/Homebrew/dev-cmd/audit.rb +++ b/Library/Homebrew/dev-cmd/audit.rb @@ -242,12 +242,10 @@ class FormulaAuditor def self.http_content_headers_and_checksum(url, hash_needed: false, user_agent: :default) max_time = hash_needed ? "600" : "25" - args = curl_args( - extra_args: ["--connect-timeout", "15", "--include", "--max-time", max_time, url], - show_output: true, - user_agent: user_agent, + output, = curl_output( + "--connect-timeout", "15", "--include", "--max-time", max_time, "--location", url, + user_agent: user_agent ) - output = Open3.popen3(*args) { |_, stdout, _, _| stdout.read } status_code = :unknown while status_code == :unknown || status_code.to_s.start_with?("3") |
