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