audit: use using for HTTPS detection.

This commit is contained in:
Mike McQuaid 2017-02-24 08:45:39 +00:00
parent 9fa014710d
commit b984be675d

View File

@ -1527,9 +1527,10 @@ class ResourceAuditor
return unless @online return unless @online
urls.each do |url| 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") if strategy <= CurlDownloadStrategy && !url.start_with?("file")
next if !@strict && mirrors.include?(url)
if http_content_problem = FormulaAuditor.check_http_content(url) if http_content_problem = FormulaAuditor.check_http_content(url)
problem http_content_problem problem http_content_problem
end end