Selaa lähdekoodia

add svg mime type

master
Martin Dørum 4 vuotta sitten
vanhempi
commit
a034d1f1f7
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  1. 2
    0
      server/filesrv.js

+ 2
- 0
server/filesrv.js Näytä tiedosto

@@ -50,6 +50,8 @@ module.exports = function createFileServer(webroot) {
ctype = "application/javascript";
else if (path.endsWith(".css"))
ctype = "text/css";
else if (path.endsWith(".svg"))
ctype = "image/svg+xml";

if (ctype)
res.writeHead(200, { "Content-Type": ctype });

Loading…
Peruuta
Tallenna