Merge pull request #10824 from reitermarkus/audit-homepage

Check homepage with both browser and default user agent.
This commit is contained in:
Markus Reiter 2021-03-11 16:39:06 +01:00 committed by GitHub
commit ac0eb3b266
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)