From 87e6ce3f7480e00aa862748dbd49e5698f4e0f48 Mon Sep 17 00:00:00 2001 From: w0rng Date: Thu, 25 Jul 2024 12:12:45 +0700 Subject: [PATCH] fix svg images --- src/lib/Server.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/Server.js b/src/lib/Server.js index 7f06da5..d1510d2 100644 --- a/src/lib/Server.js +++ b/src/lib/Server.js @@ -296,6 +296,7 @@ module.exports = class Server { if (id.endsWith('.json')) setHeader(event, 'Content-Type', 'application/json'); if (id.endsWith('.css')) setHeader(event, 'Content-Type', 'text/css'); if (id.endsWith('.png')) setHeader(event, 'Content-Type', 'image/png'); + if (id.endsWith('.svg')) setHeader(event, 'Content-Type', 'image/svg+xml'); return { size: stats.size,