Browse Source

add svg mime type

master
Martin Dørum 4 years ago
parent
commit
a034d1f1f7
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      server/filesrv.js

+ 2
- 0
server/filesrv.js View File

ctype = "application/javascript"; ctype = "application/javascript";
else if (path.endsWith(".css")) else if (path.endsWith(".css"))
ctype = "text/css"; ctype = "text/css";
else if (path.endsWith(".svg"))
ctype = "image/svg+xml";


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

Loading…
Cancel
Save