Merge pull request #12693 from samford/strategy-use-silent-flag
Strategy: Add --silent flag to DEFAULT_CURL_ARGS
This commit is contained in:
commit
385892f3d2
@ -39,6 +39,9 @@ module Homebrew
|
|||||||
DEFAULT_CURL_ARGS = [
|
DEFAULT_CURL_ARGS = [
|
||||||
# Follow redirections to handle mirrors, relocations, etc.
|
# Follow redirections to handle mirrors, relocations, etc.
|
||||||
"--location",
|
"--location",
|
||||||
|
# Avoid progress bar text, so we can reliably identify `curl` error
|
||||||
|
# messages in output
|
||||||
|
"--silent",
|
||||||
].freeze
|
].freeze
|
||||||
|
|
||||||
# `curl` arguments used in `Strategy#page_headers` method.
|
# `curl` arguments used in `Strategy#page_headers` method.
|
||||||
@ -46,8 +49,7 @@ module Homebrew
|
|||||||
# We only need the response head (not the body)
|
# We only need the response head (not the body)
|
||||||
"--head",
|
"--head",
|
||||||
# Some servers may not allow a HEAD request, so we use GET
|
# Some servers may not allow a HEAD request, so we use GET
|
||||||
"--request", "GET",
|
"--request", "GET"
|
||||||
"--silent"
|
|
||||||
] + DEFAULT_CURL_ARGS).freeze
|
] + DEFAULT_CURL_ARGS).freeze
|
||||||
|
|
||||||
# `curl` arguments used in `Strategy#page_content` method.
|
# `curl` arguments used in `Strategy#page_content` method.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user