Prevent mirror curl for file:/// URL

This commit is contained in:
David Broder-Rodgers 2017-01-30 18:30:57 +00:00
parent a699d284d0
commit 12501b4046

View File

@ -1491,7 +1491,7 @@ class ResourceAuditor
return unless @online
urls.each do |url|
strategy = DownloadStrategyDetector.detect(url)
if strategy <= CurlDownloadStrategy
if strategy <= CurlDownloadStrategy && !url.start_with?("file")
problem url
status_code = FormulaAuditor.url_status_code url
unless status_code.start_with? "2"