Merge pull request #15962 from MikeMcQuaid/more_missing_curl

Fix more missing `Utils::Curl` references.
This commit is contained in:
Mike McQuaid 2023-09-05 08:40:12 -04:00 committed by GitHub
commit 54a89cad57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 ||= {}