Skip to content

Commit 5d2bd1d

Browse files
vojtajinaIgorMinar
authored andcommitted
chore(nodeserver): add font mime type
1 parent bf77e21 commit 5d2bd1d

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎lib/nodeserver/server.js‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,10 @@ StaticServlet.MimeMap = {
8080
'jpeg': 'image/jpeg',
8181
'gif': 'image/gif',
8282
'png': 'image/png',
83-
'manifest': 'text/cache-manifest'
83+
'manifest': 'text/cache-manifest',
84+
// it should be application/font-woff
85+
// but only this silences chrome warnings
86+
'woff': 'font/opentype'
8487
};
8588

8689
StaticServlet.prototype.handleRequest = function(req, res) {

0 commit comments

Comments
 (0)