diff options
| author | Mike McQuaid | 2017-02-24 08:45:39 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2017-02-24 08:45:39 +0000 |
| commit | b984be675ddd07ccbf7151355a22096de47c5c50 (patch) | |
| tree | 42da64f0198b200f953ec351f97f08d98f4e5334 /Library/Homebrew/dev-cmd | |
| parent | 9fa014710d22e30c0be05bddc78e073373def5bd (diff) | |
| download | brew-b984be675ddd07ccbf7151355a22096de47c5c50.tar.bz2 | |
audit: use using for HTTPS detection.
Diffstat (limited to 'Library/Homebrew/dev-cmd')
| -rw-r--r-- | Library/Homebrew/dev-cmd/audit.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Library/Homebrew/dev-cmd/audit.rb b/Library/Homebrew/dev-cmd/audit.rb index 65b109f3b..cf5bdcdc4 100644 --- a/Library/Homebrew/dev-cmd/audit.rb +++ b/Library/Homebrew/dev-cmd/audit.rb @@ -1527,9 +1527,10 @@ class ResourceAuditor return unless @online urls.each do |url| - strategy = DownloadStrategyDetector.detect(url) + next if !@strict && mirrors.include?(url) + + strategy = DownloadStrategyDetector.detect(url, using) if strategy <= CurlDownloadStrategy && !url.start_with?("file") - next if !@strict && mirrors.include?(url) if http_content_problem = FormulaAuditor.check_http_content(url) problem http_content_problem end |
