ソースを参照

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

読み込み中…
キャンセル
保存