Merge pull request #15437 from samford/livecheck/update-curl_headers-args
Strategy: Pass --max-redirs to #curl_headers
This commit is contained in:
commit
59c4bb45e5
@ -184,6 +184,8 @@ module Homebrew
|
|||||||
[:default, :browser].each do |user_agent|
|
[:default, :browser].each do |user_agent|
|
||||||
begin
|
begin
|
||||||
parsed_output = curl_headers(
|
parsed_output = curl_headers(
|
||||||
|
"--max-redirs",
|
||||||
|
MAX_REDIRECTIONS.to_s,
|
||||||
url,
|
url,
|
||||||
wanted_headers: ["location", "content-disposition"],
|
wanted_headers: ["location", "content-disposition"],
|
||||||
use_homebrew_curl: homebrew_curl,
|
use_homebrew_curl: homebrew_curl,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user