From b79aeab8b22bf18b4906e5d33b40bb62521e56ae Mon Sep 17 00:00:00 2001 From: Connor Mann <34930543+cnnrmnn@users.noreply.github.com> Date: Fri, 14 May 2021 09:55:45 -0400 Subject: [PATCH] Update Library/Homebrew/utils/curl.rb Co-authored-by: Mike McQuaid --- Library/Homebrew/utils/curl.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/utils/curl.rb b/Library/Homebrew/utils/curl.rb index e701d4a82b..04300c34b3 100644 --- a/Library/Homebrew/utils/curl.rb +++ b/Library/Homebrew/utils/curl.rb @@ -146,7 +146,7 @@ module Utils args = ["--location", "--remote-time", "--output", destination, *args] # continue-at shouldn't be used with servers that don't support partial requests. - args = ["--continue-at", "-"] + args if destination.exist? && supports_partial + args = ["--continue-at", "-", *args] if destination.exist? && supports_partial curl(*args, **options) end