Merge pull request #16349 from unshare/homepage-ua

Work around recent Akamai/Microsoft issues
This commit is contained in:
Mike McQuaid 2023-12-17 15:58:01 +00:00 committed by GitHub
commit fb7f1a2c4d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -785,8 +785,14 @@ module Cask
return unless cask.homepage
user_agents = if cask.tap&.audit_exception(:simple_user_agent_for_homepage, cask.token)
["curl"]
else
[:browser, :default]
end
validate_url_for_https_availability(cask.homepage, SharedAudits::URL_TYPE_HOMEPAGE, cask.token, cask.tap,
user_agents: [:browser, :default],
user_agents: user_agents,
check_content: true,
strict: strict?)
end