From 7a23bd080b557e3da68a97947d25a08bf125deb8 Mon Sep 17 00:00:00 2001 From: john Date: Fri, 4 Apr 2025 16:36:04 +0200 Subject: [PATCH] add comment --- server.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server.ts b/server.ts index 5d18739..5588072 100644 --- a/server.ts +++ b/server.ts @@ -14,6 +14,8 @@ export function startServer(hostname = "localhost", port = 6969) { const extension = path.extname(filepath); + // chromium doesn't care about your file extensions, + // it only wants content-type const contentType = { '.svg': "image/svg+xml", '.png': "image/png",