From b9aa2acddc5d0b405e22e599cf7260f2a9ea8009 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Fri, 7 Feb 2014 10:33:08 -0800 Subject: [PATCH] core: request JSON type when getting the metadata URL --- lib/vagrant/action/builtin/box_add.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vagrant/action/builtin/box_add.rb b/lib/vagrant/action/builtin/box_add.rb index 867e981bb..522925fa2 100644 --- a/lib/vagrant/action/builtin/box_add.rb +++ b/lib/vagrant/action/builtin/box_add.rb @@ -436,7 +436,7 @@ module Vagrant # @param [String] url # @return [Boolean] true if metadata def metadata_url?(url, env) - d = downloader(url, env, ui: false) + d = downloader(url, env, json: true, ui: false) # If we're downloading a file, cURL just returns no # content-type (makes sense), so we just test if it is JSON