This commit is contained in:
Rizky 2023-10-16 06:48:30 +07:00
parent 7354176c48
commit 952722a1fe
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ export const createServer = async () => {
try {
const found = cache.static[url.pathname];
if (found || g.mode === "prod") {
if (found && g.mode === "prod") {
const res = new Response(found.content);
res.headers.set("Content-Type", found.type);
}