Merge pull request #16741 from mavenor/fix-livecheck-page-content

`strategy#page_content`: allow cURL to `--fail-with-body`
This commit is contained in:
Sam Ford 2024-02-24 16:11:17 -05:00 committed by GitHub
commit e9cb65bfba
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -58,6 +58,9 @@ module Homebrew
# `curl` arguments used in `Strategy#page_content` method.
PAGE_CONTENT_CURL_ARGS = ([
"--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
# final URL after any redirections
"--include",