Procházet zdrojové kódy

add svg mime type

master
Martin Dørum před 4 roky
rodič
revize
a034d1f1f7
1 změnil soubory, kde provedl 2 přidání a 0 odebrání
  1. 2
    0
      server/filesrv.js

+ 2
- 0
server/filesrv.js Zobrazit soubor

@@ -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 });

Načítá se…
Zrušit
Uložit