Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 77e6d83

Browse files
committed
chore(nodeserver): add font mime type
1 parent 33ad2b4 commit 77e6d83

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/nodeserver/server.js

+4-1
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)