aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2017-02-24 08:45:39 +0000
committerMike McQuaid2017-02-24 08:45:39 +0000
commitb984be675ddd07ccbf7151355a22096de47c5c50 (patch)
tree42da64f0198b200f953ec351f97f08d98f4e5334 /Library
parent9fa014710d22e30c0be05bddc78e073373def5bd (diff)
downloadbrew-b984be675ddd07ccbf7151355a22096de47c5c50.tar.bz2
audit: use using for HTTPS detection.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/dev-cmd/audit.rb5
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