mirror of
https://github.com/oven-sh/bun
synced 2026-02-02 15:08:46 +00:00
fix path string (#1597)
This commit is contained in:
@@ -6,7 +6,7 @@ serve({
|
||||
|
||||
// If the URL is empty, display this file.
|
||||
if (pathname === "") {
|
||||
return new Response(file(import.meta.url));
|
||||
return new Response(file(import.meta.url.replace("file://", "")));
|
||||
}
|
||||
|
||||
return new Response(file(pathname));
|
||||
|
||||
Reference in New Issue
Block a user