diff --git a/static/favicon.ico b/static/favicon.ico new file mode 100644 index 0000000..0770e17 Binary files /dev/null and b/static/favicon.ico differ diff --git a/traque.js b/traque.js index 005edf2..2fa1de5 100644 --- a/traque.js +++ b/traque.js @@ -99,6 +99,10 @@ var server = http.createServer(option, function(req, res){ } if(filename.endsWith('.js')) res.writeHead(200, {'Content-Type': 'text/javascript'}); + else if(filename.endsWith('.png')) + res.writeHead(200, {'Content-Type': 'image/png'}); + else if(filename.endsWith('.ico')) + res.writeHead(200, {'Content-Type': 'image/ico'}); else res.writeHead(200, {'Content-Type': 'text/html'}); res.write(data);