core: set URL to opaque if there is no path

This commit is contained in:
Mitchell Hashimoto 2014-02-03 09:02:15 +01:00
parent 85aa7db17e
commit 433e789a99
1 changed files with 1 additions and 1 deletions

View File

@ -430,7 +430,7 @@ module Vagrant
uri = URI.parse(d.source) uri = URI.parse(d.source)
if uri.scheme == "file" if uri.scheme == "file"
url = uri.path url = uri.path
url = uri.opaque if Util::Platform.windows? url ||= uri.opaque
begin begin
File.open(url, "r") do |f| File.open(url, "r") do |f|