From 65d1747b298bf3052e3dc5bf42296ca26f044218 Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Wed, 10 Mar 2021 13:30:13 +0100 Subject: [PATCH] Check homepage with both browser and default user agent. --- Library/Homebrew/cask/audit.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/cask/audit.rb b/Library/Homebrew/cask/audit.rb index 5398a2feb6..2fec78dd1e 100644 --- a/Library/Homebrew/cask/audit.rb +++ b/Library/Homebrew/cask/audit.rb @@ -717,7 +717,12 @@ module Cask check_url_for_https_availability(cask.appcast, check_content: true) if cask.appcast && appcast? - check_url_for_https_availability(cask.homepage, check_content: true, user_agents: [:browser]) if cask.homepage + return unless cask.homepage + + check_url_for_https_availability(cask.homepage, + user_agents: [:browser, :default], + check_content: true, + strict: strict?) end def check_url_for_https_availability(url_to_check, **options)