utils/curl: fix TLSv1.3 caching to be based on real paths
This commit is contained in:
parent
50437ca07e
commit
8d0ef708db
@ -417,7 +417,7 @@ module Utils
|
|||||||
@curl_supports_tls13 ||= Hash.new do |h, key|
|
@curl_supports_tls13 ||= Hash.new do |h, key|
|
||||||
h[key] = quiet_system(curl_executable, "--tlsv1.3", "--head", "https://brew.sh/")
|
h[key] = quiet_system(curl_executable, "--tlsv1.3", "--head", "https://brew.sh/")
|
||||||
end
|
end
|
||||||
@curl_supports_tls13[ENV["HOMEBREW_CURL"]]
|
@curl_supports_tls13[curl_path]
|
||||||
end
|
end
|
||||||
|
|
||||||
def http_status_ok?(status)
|
def http_status_ok?(status)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user