diff options
| author | commitay | 2017-12-10 10:07:17 +1000 |
|---|---|---|
| committer | commitay | 2017-12-12 08:22:23 +1000 |
| commit | 8a63356aed5944551e2ffd101601e116fe200f76 (patch) | |
| tree | e7fc20bed728c4cd0a9b3c7fc82bfcbd6c01b121 /Library | |
| parent | f42d8acde3907b90ea32cef01445744288984a4c (diff) | |
| download | brew-8a63356aed5944551e2ffd101601e116fe200f76.tar.bz2 | |
Partially revert "Add audit check for URL schema"
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cask/lib/hbc/audit.rb | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/audit.rb b/Library/Homebrew/cask/lib/hbc/audit.rb index d53d26ffc..d757b0623 100644 --- a/Library/Homebrew/cask/lib/hbc/audit.rb +++ b/Library/Homebrew/cask/lib/hbc/audit.rb @@ -2,7 +2,6 @@ require "hbc/checkable" require "hbc/download" require "digest" require "utils/git" -require "utils/curl" module Hbc class Audit @@ -31,7 +30,6 @@ module Hbc check_url check_generic_artifacts check_token_conflicts - check_https_availability check_download check_single_pre_postflight check_single_uninstall_zap @@ -277,17 +275,6 @@ module Hbc "#{core_tap.default_remote}/blob/master/Formula/#{cask.token}.rb" end - def check_https_availability - check_url_for_https_availability(cask.url, user_agents: [cask.url.user_agent]) unless cask.url.to_s.empty? - check_url_for_https_availability(cask.appcast) unless cask.appcast.to_s.empty? - check_url_for_https_availability(cask.homepage) unless cask.homepage.to_s.empty? - end - - def check_url_for_https_availability(url_to_check, user_agents: [:default]) - problem = curl_check_http_content(url_to_check.to_s, user_agents: user_agents) - add_error problem unless problem.nil? - end - def check_download return unless download && cask.url odebug "Auditing download" |
