fix svg images
This commit is contained in:
parent
2afe8d177b
commit
87e6ce3f74
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue