curl: unset SSL_CERT_FILE.
This commit is contained in:
parent
c3006f0f12
commit
a7d74e0f53
@ -34,8 +34,12 @@ def curl_args(*extra_args, show_output: false, user_agent: :default)
|
|||||||
end
|
end
|
||||||
|
|
||||||
def curl(*args)
|
def curl(*args)
|
||||||
|
# SSL_CERT_FILE can be incorrectly set by users or portable-ruby and screw
|
||||||
|
# with SSL downloads so unset it here.
|
||||||
|
with_env SSL_CERT_FILE: nil do
|
||||||
safe_system(*curl_args(*args))
|
safe_system(*curl_args(*args))
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
def curl_download(*args, to: nil, continue_at: "-", **options)
|
def curl_download(*args, to: nil, continue_at: "-", **options)
|
||||||
had_incomplete_download ||= File.exist?(to)
|
had_incomplete_download ||= File.exist?(to)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user