Merge pull request #3417 from MikeMcQuaid/curl-unset-ssl-cert

curl: unset SSL_CERT_FILE.
This commit is contained in:
Mike McQuaid 2017-11-05 15:35:29 +00:00 committed by GitHub
commit 265797bf9e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,7 +34,11 @@ def curl_args(*extra_args, show_output: false, user_agent: :default)
end
def curl(*args)
safe_system(*curl_args(*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))
end
end
def curl_download(*args, to: nil, continue_at: "-", **options)