Skip to content

Commit 69637b1

Browse files
Update src/ByteBard.AsyncAPI.Readers/Services/DefaultStreamLoader.cs
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Signed-off-by: Alex Wichmann <VisualBean@users.noreply.github.com>
1 parent d95c74e commit 69637b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ByteBard.AsyncAPI.Readers/Services/DefaultStreamLoader.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public Stream Load(Uri uri)
2020
switch (uri.Scheme.ToLowerInvariant())
2121
{
2222
case "file":
23-
return File.OpenRead(uri.AbsolutePath);
23+
return File.OpenRead(uri.LocalPath);
2424
case "http":
2525
case "https":
2626
return HttpClient.GetStreamAsync(uri).GetAwaiter().GetResult();

0 commit comments

Comments
 (0)