Add max redirects for download
This commit is contained in:
parent
5e2549fe8b
commit
0f0c0b0396
|
@ -30,6 +30,7 @@ module Vagrant
|
|||
# Build the list of parameters to execute with cURL
|
||||
options = [
|
||||
"--fail",
|
||||
"--max-redirs", "10",
|
||||
"--output", @destination
|
||||
]
|
||||
|
||||
|
|
|
@ -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
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue