api: retry manually without curl_args defaults.

Co-authored-by: Kevin <apainintheneck@gmail.com>
This commit is contained in:
Mike McQuaid 2023-09-03 09:10:25 -04:00 committed by GitHub
parent d5a1f3e02c
commit 8ba389817f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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")}