core: when loading box metadata, specify JSON header

This commit is contained in:
Mitchell Hashimoto 2014-02-07 10:51:57 -08:00
parent b9aa2acddc
commit 46a42eb9c2
1 changed files with 2 additions and 1 deletions

View File

@ -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