aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorVítor Galvão2017-12-16 12:09:51 +0000
committerGitHub2017-12-16 12:09:51 +0000
commitdeb37497e92ca4ca09d90e47183a414f6e588900 (patch)
treeea8ce70941cd991d304a8fbea228dfb7bcdc80a6 /Library
parent67c4402634e24400accdb59fa81cde9020dd0386 (diff)
parent8a63356aed5944551e2ffd101601e116fe200f76 (diff)
downloadbrew-deb37497e92ca4ca09d90e47183a414f6e588900.tar.bz2
Merge pull request #3564 from commitay/revert-https-audit
Partially revert "Add audit check for URL schema"
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cask/lib/hbc/audit.rb13
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"