Update Library/Homebrew/utils/curl.rb

Co-authored-by: Rylan Polster <rslpolster@gmail.com>
This commit is contained in:
Connor Mann 2021-05-14 11:16:35 -04:00 committed by GitHub
parent b79aeab8b2
commit ecaaafba20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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