download_strategy: remove extra colon
Closes Homebrew/homebrew#40920. Signed-off-by: Xu Cheng <xucheng@me.com>
This commit is contained in:
parent
8ef8f0f615
commit
60b70c9931
@ -273,7 +273,7 @@ class CurlDownloadStrategy < AbstractFileDownloadStrategy
|
||||
unless cached_location.exist?
|
||||
urls = actual_urls
|
||||
unless urls.empty?
|
||||
ohai "Downloading from: #{urls.last}"
|
||||
ohai "Downloading from #{urls.last}"
|
||||
if !ENV["HOMEBREW_NO_INSECURE_REDIRECT"].nil? && @url.start_with?("https://") &&
|
||||
urls.any? { |u| !u.start_with? "https://" }
|
||||
raise "HTTPS to HTTP redirect detected & HOMEBREW_NO_INSECURE_REDIRECT is set."
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user