Skip to content

Commit

Permalink
cask/audit: fix Utils::Curl usage
Browse files Browse the repository at this point in the history
Needed after Homebrew#15940.
  • Loading branch information
ZhongRuoyu committed Sep 5, 2023
1 parent 41a810b commit 05ffff0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Library/Homebrew/cask/audit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ module Cask
#
# @api private
class Audit
include ::Utils::Curl
extend Predicable

attr_reader :cask, :download
Expand Down Expand Up @@ -734,7 +735,7 @@ def audit_cask_path
# options: T.untyped).void
# }
def validate_url_for_https_availability(url_to_check, url_type, cask_token, tap, location: nil, **options)
problem = ::Utils::Curl.curl_check_http_content(url_to_check.to_s, url_type, **options)
problem = 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)

if problem
Expand Down

0 comments on commit 05ffff0

Please sign in to comment.