Skip to content

Commit

Permalink
Merge pull request #16741 from mavenor/fix-livecheck-page-content
Browse files Browse the repository at this point in the history
`strategy#page_content`: allow cURL to `--fail-with-body`
  • Loading branch information
samford authored Feb 24, 2024
2 parents 6b14d9c + cf43d53 commit e9cb65b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Library/Homebrew/livecheck/strategy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ module Strategy
# `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",
Expand Down

0 comments on commit e9cb65b

Please sign in to comment.