Add max redirects for download

This commit is contained in:
Mitchell Hashimoto 2013-04-03 12:01:12 -07:00
parent 5e2549fe8b
commit 0f0c0b0396
3 changed files with 1 additions and 22 deletions

View File

@ -30,6 +30,7 @@ module Vagrant
# Build the list of parameters to execute with cURL
options = [
"--fail",
"--max-redirs", "10",
"--output", @destination
]

View File

@ -1,17 +0,0 @@
module VagrantPlugins
module Kernel_V2
class DownloaderConfig < Vagrant.plugin("2", :config)
attr_accessor :insecure
def initialize
super
@insecure = UNSET_VALUE
end
def finalize!
@insecure = false if @insecure == UNSET_VALUE
end
end
end
end

View File

@ -15,11 +15,6 @@ module VagrantPlugins
# "kernel_v1", none of these configuration classes are upgradable.
# This is by design, since we can't be sure if they're upgradable
# until another version is available.
config("downloader") do
require File.expand_path("../config/downloader", __FILE__)
DownloaderConfig
end
config("ssh") do
require File.expand_path("../config/ssh", __FILE__)
SSHConfig