Revert "Update Library/Homebrew/utils/curl.rb"

This reverts commit ecaaafba203578498fbc0a48493adea1790839f2.
This commit is contained in:
Connor Mann 2021-05-14 15:14:56 -04:00
parent f7fe111430
commit b546960da9

View File

@ -147,9 +147,9 @@ module Utils
end
end
args.prepend "--location", "--remote-time", "--output", destination
args = ["--location", "--remote-time", "--output", destination, *args]
# continue-at shouldn't be used with servers that don't support partial requests.
args.prepend "--continue-at", "-" if destination.exist? && supports_partial
args = ["--continue-at", "-", *args] if destination.exist? && supports_partial
curl(*args, **options)
end