core: request JSON type when getting the metadata URL

This commit is contained in:
Mitchell Hashimoto 2014-02-07 10:33:08 -08:00
parent d4c753c48d
commit b9aa2acddc
1 changed files with 1 additions and 1 deletions

View File

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