utils/curl: fix TLSv1.3 caching to be based on real paths

This commit is contained in:
Bo Anderson 2022-05-30 04:11:12 +01:00
parent 50437ca07e
commit 8d0ef708db
No known key found for this signature in database
GPG Key ID: 3DB94E204E137D65

View File

@ -417,7 +417,7 @@ module Utils
@curl_supports_tls13 ||= Hash.new do |h, key|
h[key] = quiet_system(curl_executable, "--tlsv1.3", "--head", "https://brew.sh/")
end
@curl_supports_tls13[ENV["HOMEBREW_CURL"]]
@curl_supports_tls13[curl_path]
end
def http_status_ok?(status)