From b400dfb386be65ca1d16ada005e75683ec48c1a5 Mon Sep 17 00:00:00 2001 From: YuX <871884617@qq.com> Date: Sat, 10 Dec 2022 10:17:12 +0800 Subject: fix path string (#1597) --- examples/http-file.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/http-file.ts') 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)); -- cgit v1.2.3