Skip to content

Commit deb3749

Browse files
authored
Merge pull request #3564 from commitay/revert-https-audit
Partially revert "Add audit check for URL schema"
2 parents 67c4402 + 8a63356 commit deb3749

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

Library/Homebrew/cask/lib/hbc/audit.rb

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
require "hbc/download"
33
require "digest"
44
require "utils/git"
5-
require "utils/curl"
65

76
module Hbc
87
class Audit
@@ -31,7 +30,6 @@ def run!
3130
check_url
3231
check_generic_artifacts
3332
check_token_conflicts
34-
check_https_availability
3533
check_download
3634
check_single_pre_postflight
3735
check_single_uninstall_zap
@@ -277,17 +275,6 @@ def core_formula_url
277275
"#{core_tap.default_remote}/blob/master/Formula/#{cask.token}.rb"
278276
end
279277

280-
def check_https_availability
281-
check_url_for_https_availability(cask.url, user_agents: [cask.url.user_agent]) unless cask.url.to_s.empty?
282-
check_url_for_https_availability(cask.appcast) unless cask.appcast.to_s.empty?
283-
check_url_for_https_availability(cask.homepage) unless cask.homepage.to_s.empty?
284-
end
285-
286-
def check_url_for_https_availability(url_to_check, user_agents: [:default])
287-
problem = curl_check_http_content(url_to_check.to_s, user_agents: user_agents)
288-
add_error problem unless problem.nil?
289-
end
290-
291278
def check_download
292279
return unless download && cask.url
293280
odebug "Auditing download"

0 commit comments

Comments
 (0)