소스 검색

add svg mime type

master
Martin Dørum 4 년 전
부모
커밋
a034d1f1f7
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2
    0
      server/filesrv.js

+ 2
- 0
server/filesrv.js 파일 보기

@@ -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…
취소
저장