Merge pull request #16741 from mavenor/fix-livecheck-page-content
`strategy#page_content`: allow cURL to `--fail-with-body`
This commit is contained in:
commit
e9cb65bfba
@ -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",
|
||||||
|
# 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
|
# 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