diff --git a/Source/Function/Worker.ts b/Source/Function/Worker.ts index 8e7df315..6e0275ef 100644 --- a/Source/Function/Worker.ts +++ b/Source/Function/Worker.ts @@ -12,7 +12,9 @@ export default >{ console.log((await import("fs/promises")).readFile(url.pathname)); - return new Response(url.pathname); + return new Response(url.pathname, { + headers: { "Content-Type": "text/html" }, + }); } return env.ASSETS.fetch(request);