fix svg images

This commit is contained in:
w0rng 2024-07-25 12:12:45 +07:00
parent 2afe8d177b
commit 87e6ce3f74
1 changed files with 1 additions and 0 deletions

View File

@ -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,