diff options
Diffstat (limited to 'examples/http-file.ts')
-rw-r--r-- | examples/http-file.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/http-file.ts b/examples/http-file.ts index fdf47f949..bcd28227c 100644 --- a/examples/http-file.ts +++ b/examples/http-file.ts @@ -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)); |