Cask audit: appcast fake user agent
This commit is contained in:
parent
529e448189
commit
61623f97ca
@ -304,7 +304,8 @@ module Cask
|
||||
return if cask.appcast.configuration == :no_check
|
||||
|
||||
appcast_stanza = cask.appcast.to_s
|
||||
appcast_contents, = curl_output("--compressed", "--location", "--max-time", "5", appcast_stanza)
|
||||
appcast_contents, = curl_output("--compressed", "--user-agent", HOMEBREW_USER_AGENT_FAKE_SAFARI, "--location",
|
||||
"--max-time", "5", appcast_stanza)
|
||||
version_stanza = cask.version.to_s
|
||||
if cask.appcast.configuration.blank?
|
||||
adjusted_version_stanza = version_stanza.split(",")[0].split("-")[0].split("_")[0]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user