core: content-type is case insensitive for metadata check [GH-4369]

This commit is contained in:
Mitchell Hashimoto 2014-08-29 11:27:50 -07:00
parent a6163d4062
commit a0b95cb927
2 changed files with 3 additions and 1 deletions

View File

@ -46,6 +46,8 @@ BUG FIXES:
as root. [GH-4387]
- core: "vagrant provision" will cause "vagrant up" to properly not
reprovision. [GH-4393]
- commands/box/add: "Content-Type" header is now case-insensitive when
looking for metadata type. [GH-4369]
- commands/package: base package won't crash with exception [GH-4017]
- commands/rsync-auto: Destroyed machines won't raise exceptions. [GH-4031]
- commands/ssh: Extra args are passed through to Docker container. [GH-4378]

View File

@ -481,7 +481,7 @@ module Vagrant
end
output = d.head
match = output.scan(/^Content-Type: (.+?)$/).last
match = output.scan(/^Content-Type: (.+?)$/i).last
return false if !match
match.last.chomp == "application/json"
end