Skip to content

Commit

Permalink
Allow curl args to be overriden.
Browse files Browse the repository at this point in the history
  • Loading branch information
reitermarkus committed Aug 8, 2017
1 parent 1a30c16 commit 2cba322
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Library/Homebrew/test/cask/download_strategy_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@
downloader.fetch

expect(downloader).to have_received(:curl).with(
cask.url.to_s,
"--location",
"--remote-time",
"--continue-at", "-",
"--output", kind_of(Pathname),
cask.url.to_s,
user_agent: :default
)
end
Expand Down
2 changes: 1 addition & 1 deletion Library/Homebrew/utils/curl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def curl(*args)
end

def curl_download(*args, to: nil, **options)
curl(*args, "--location", "--remote-time", "--continue-at", "-", "--output", to, **options)
curl("--location", "--remote-time", "--continue-at", "-", "--output", to, *args, **options)
end

def curl_output(*args, **options)
Expand Down

0 comments on commit 2cba322

Please sign in to comment.