From 5b17788aa9a6f71c44fb2904cbd45a9756f9dce8 Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Sat, 30 Sep 2023 12:55:06 +0300 Subject: [PATCH] squash! --- Source/Function/Worker.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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);