Skip to content
Snippets Groups Projects
Commit 16e70725 authored by cnnrmnn's avatar cnnrmnn
Browse files

Fix argument order

parent 7637fd53
No related branches found
No related tags found
No related merge requests found
......@@ -119,6 +119,8 @@ module Utils
end
def parse_headers(headers)
return {} unless headers
headers.split("\n").to_h do |h|
partitioned = h.partition(": ")
[partitioned.first, partitioned.last]
......@@ -145,10 +147,9 @@ module Utils
end
end
args += ["--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 += ["--continue-at", "-"] if destination.exist? && supports_partial
args = ["--continue-at", "-"] + args if destination.exist? && supports_partial
curl(*args, **options)
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment