api: retry manually without curl_args defaults.
Co-authored-by: Kevin <apainintheneck@gmail.com>
This commit is contained in:
parent
d5a1f3e02c
commit
8ba389817f
@ -48,7 +48,7 @@ module Homebrew
|
|||||||
odie "Need to download #{url} but cannot as root! Run `brew update` without `sudo` first then try again."
|
odie "Need to download #{url} but cannot as root! Run `brew update` without `sudo` first then try again."
|
||||||
end
|
end
|
||||||
|
|
||||||
curl_args = Utils::Curl.curl_args + %W[
|
curl_args = Utils::Curl.curl_args(retries: 0) + %W[
|
||||||
--compressed
|
--compressed
|
||||||
--speed-limit #{ENV.fetch("HOMEBREW_CURL_SPEED_LIMIT")}
|
--speed-limit #{ENV.fetch("HOMEBREW_CURL_SPEED_LIMIT")}
|
||||||
--speed-time #{ENV.fetch("HOMEBREW_CURL_SPEED_TIME")}
|
--speed-time #{ENV.fetch("HOMEBREW_CURL_SPEED_TIME")}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user