Prevent mirror curl for file:/// URL
This commit is contained in:
parent
a699d284d0
commit
12501b4046
@ -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"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user