Fix more missing Utils::Curl references.

e.g. https://github.com/Homebrew/brew/pull/15940#issuecomment-1706486816
This commit is contained in:
Mike McQuaid 2023-09-05 08:27:02 -04:00
parent e02ec5e07a
commit 1a91157590
No known key found for this signature in database
GPG Key ID: 3338A31AFDB1D829
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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 ||= {}