Merge pull request #12693 from samford/strategy-use-silent-flag

Strategy: Add --silent flag to DEFAULT_CURL_ARGS
This commit is contained in:
Mike McQuaid 2022-01-11 09:51:47 +00:00 committed by GitHub
commit 385892f3d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -39,6 +39,9 @@ module Homebrew
DEFAULT_CURL_ARGS = [
# Follow redirections to handle mirrors, relocations, etc.
"--location",
# Avoid progress bar text, so we can reliably identify `curl` error
# messages in output
"--silent",
].freeze
# `curl` arguments used in `Strategy#page_headers` method.
@ -46,8 +49,7 @@ module Homebrew
# We only need the response head (not the body)
"--head",
# Some servers may not allow a HEAD request, so we use GET
"--request", "GET",
"--silent"
"--request", "GET"
] + DEFAULT_CURL_ARGS).freeze
# `curl` arguments used in `Strategy#page_content` method.