Skip to content

Commit

Permalink
squash!
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolaRHristov committed Sep 30, 2023
1 parent c7e6b40 commit 5b17788
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Source/Function/Worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ export default <ExportedHandler<Environment>>{

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);
Expand Down

0 comments on commit 5b17788

Please sign in to comment.