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:
parent
ea3b4b887e
commit
be418d81e6
@ -58,6 +58,9 @@ module Homebrew
|
|||||||
# `curl` arguments used in `Strategy#page_content` method.
|
# `curl` arguments used in `Strategy#page_content` method.
|
||||||
PAGE_CONTENT_CURL_ARGS = ([
|
PAGE_CONTENT_CURL_ARGS = ([
|
||||||
"--compressed",
|
"--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
|
# Include HTTP response headers in output, so we can identify the
|
||||||
# final URL after any redirections
|
# final URL after any redirections
|
||||||
"--include",
|
"--include",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user