core: don't make all downloads continuable

This commit is contained in:
Mitchell Hashimoto 2013-11-23 15:47:42 -08:00
parent 034c151720
commit 5d9c002bdd
2 changed files with 3 additions and 1 deletions

View File

@ -29,6 +29,7 @@ module Vagrant
end
downloader_options = {}
downloader_options[:continue] = true
downloader_options[:insecure] = env[:box_download_insecure]
downloader_options[:ui] = env[:ui]

View File

@ -20,6 +20,7 @@ module Vagrant
# Get the various optional values
options ||= {}
@continue = options[:continue]
@insecure = options[:insecure]
@ui = options[:ui]
end
@ -38,9 +39,9 @@ module Vagrant
"--max-redirs", "10",
"--user-agent", USER_AGENT,
"--output", @destination,
"--continue-at", "-"
]
options += ["--continue-at", "-"] if @continue
options << "--insecure" if @insecure
options << @source