core: when loading box metadata, specify JSON header
This commit is contained in:
parent
b9aa2acddc
commit
46a42eb9c2
@ -100,7 +100,8 @@ module Vagrant
|
||||
url = "file:#{url}"
|
||||
end
|
||||
|
||||
Util::Downloader.new(url, tf.path).download!
|
||||
opts = { headers: ["Accept: application/json"] }
|
||||
Util::Downloader.new(url, tf.path, **opts).download!
|
||||
BoxMetadata.new(File.open(tf.path, "r"))
|
||||
end
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user