Check homepage with both browser and default user agent.

This commit is contained in:
Markus Reiter 2021-03-10 13:30:13 +01:00
parent 5240afbbb5
commit 65d1747b29

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)