diff --git a/Library/Homebrew/livecheck/strategy.rb b/Library/Homebrew/livecheck/strategy.rb index 72500a9584..ea4a475901 100644 --- a/Library/Homebrew/livecheck/strategy.rb +++ b/Library/Homebrew/livecheck/strategy.rb @@ -58,8 +58,8 @@ module Homebrew # `curl` arguments used in `Strategy#page_content` method. PAGE_CONTENT_CURL_ARGS = ([ "--compressed", - # Allow the return of an error code on exit, so that we can retry - # with a fake UA string (e.g. for Cloudflare-protected sites) + # Return an error when the HTTP response code is 400 or greater but + # continue to return body content "--fail-with-body", # Include HTTP response headers in output, so we can identify the # final URL after any redirections