Strategy#page_content: allow cURL to --fail-with-body

since `curl_output` (introduced in #15351) sets `show_output: true`,
it doesn’t let it unless some form of --fail[...] is passed explicitly
This commit is contained in:
mavenor 2024-02-24 00:19:24 +05:30
parent ea3b4b887e
commit be418d81e6
No known key found for this signature in database
GPG Key ID: 5A3CDDFF4338427F

View File

@ -58,6 +58,9 @@ 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)
"--fail-with-body",
# Include HTTP response headers in output, so we can identify the
# final URL after any redirections
"--include",