From 46a42eb9c2b00fe7c8befc76a3680f99dde1e78e Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Fri, 7 Feb 2014 10:51:57 -0800 Subject: [PATCH] core: when loading box metadata, specify JSON header --- lib/vagrant/box.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/vagrant/box.rb b/lib/vagrant/box.rb index 1e1c26dba..1da870a39 100644 --- a/lib/vagrant/box.rb +++ b/lib/vagrant/box.rb @@ -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