From ecaaafba203578498fbc0a48493adea1790839f2 Mon Sep 17 00:00:00 2001 From: Connor Mann <34930543+cnnrmnn@users.noreply.github.com> Date: Fri, 14 May 2021 11:16:35 -0400 Subject: [PATCH] Update Library/Homebrew/utils/curl.rb Co-authored-by: Rylan Polster --- Library/Homebrew/utils/curl.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/utils/curl.rb b/Library/Homebrew/utils/curl.rb index 04300c34b3..04b9491f95 100644 --- a/Library/Homebrew/utils/curl.rb +++ b/Library/Homebrew/utils/curl.rb @@ -144,9 +144,9 @@ module Utils end end - args = ["--location", "--remote-time", "--output", destination, *args] + args.prepend "--location", "--remote-time", "--output", destination # continue-at shouldn't be used with servers that don't support partial requests. - args = ["--continue-at", "-", *args] if destination.exist? && supports_partial + args.prepend "--continue-at", "-" if destination.exist? && supports_partial curl(*args, **options) end