Fix more missing Utils::Curl references.
e.g. https://github.com/Homebrew/brew/pull/15940#issuecomment-1706486816
This commit is contained in:
parent
e02ec5e07a
commit
1a91157590
@ -734,7 +734,7 @@ module Cask
|
|||||||
# options: T.untyped).void
|
# options: T.untyped).void
|
||||||
# }
|
# }
|
||||||
def validate_url_for_https_availability(url_to_check, url_type, cask_token, tap, location: nil, **options)
|
def validate_url_for_https_availability(url_to_check, url_type, cask_token, tap, location: nil, **options)
|
||||||
problem = curl_check_http_content(url_to_check.to_s, url_type, **options)
|
problem = ::Utils::Curl.curl_check_http_content(url_to_check.to_s, url_type, **options)
|
||||||
exception = tap&.audit_exception(:secure_connection_audit_skiplist, cask_token, url_to_check.to_s)
|
exception = tap&.audit_exception(:secure_connection_audit_skiplist, cask_token, url_to_check.to_s)
|
||||||
|
|
||||||
if problem
|
if problem
|
||||||
|
|||||||
@ -164,7 +164,7 @@ class GitHubPackages
|
|||||||
# Going forward, this should probably be pinned to tags.
|
# Going forward, this should probably be pinned to tags.
|
||||||
# We currently use features newer than the last one (v1.0.2).
|
# We currently use features newer than the last one (v1.0.2).
|
||||||
url = "https://raw.githubusercontent.com/opencontainers/image-spec/170393e57ed656f7f81c3070bfa8c3346eaa0a5a/schema/#{basename}.json"
|
url = "https://raw.githubusercontent.com/opencontainers/image-spec/170393e57ed656f7f81c3070bfa8c3346eaa0a5a/schema/#{basename}.json"
|
||||||
out, = curl_output(url)
|
out, = Utils::Curl.curl_output(url)
|
||||||
json = JSON.parse(out)
|
json = JSON.parse(out)
|
||||||
|
|
||||||
@schema_json ||= {}
|
@schema_json ||= {}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user