Merge pull request #7569 from rossi-fi/fix/master/7568

Use RFC- and cURL-friendly file:/// URI. Fixes #7568.
This commit is contained in:
Seth Vargo 2016-07-18 22:20:03 -04:00 committed by GitHub
commit 7ed6bb5bef
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ module Vagrant
u = u.gsub("\\", "/")
if Util::Platform.windows? && u =~ /^[a-z]:/i
# On Windows, we need to be careful about drive letters
u = "file://#{URI.escape(u)}"
u = "file:///#{URI.escape(u)}"
end
if u =~ /^[a-z0-9]+:.*$/i && !u.start_with?("file://")