Skip to content

Commit

Permalink
Merge pull request #93 from Insolita/92-fix
Browse files Browse the repository at this point in the history
fix #92
  • Loading branch information
cebe authored Dec 30, 2020
2 parents 97f6b7a + 2f71121 commit 1f11eef
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 1f11eef

Please sign in to comment.