Skip to content

Commit

Permalink
fix #92
Browse files Browse the repository at this point in the history
  • Loading branch information
Insolita committed Dec 27, 2020
1 parent 97f6b7a commit 2f71121
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ReferenceContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ private function normalizeUri($uri)
}
if (stripos(PHP_OS, 'WIN') === 0 && strncmp(substr($uri, 1), ':\\', 2) === 0) {
$uri = $this->reduceDots($uri);
return "file:///" . strtr($uri, [' ' => '%20', '\\' => '/']);
return "file://" . strtr($uri, [' ' => '%20', '\\' => '/']);
}
throw new UnresolvableReferenceException('Can not resolve references for a specification given as a relative path.');
}
Expand Down

0 comments on commit 2f71121

Please sign in to comment.