#354 fix serve icons

This commit is contained in:
Mario Romano 2016-07-28 10:23:52 +01:00
parent ddcae60d8a
commit eb944b801e

View File

@ -56,7 +56,7 @@ var server = http.createServer(function (req, res) {
var charset = mime.charsets.lookup(type);
res.setHeader('Content-Type', type + (charset ? '; charset=' + charset : ''));
}
if(type.indexOf('image') > -1){
if(type.indexOf('image') > -1 || type.indexOf('font') > -1){
var img = fs.readFileSync(pathname.substr(1));
res.end(img, 'binary');
}else{