mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-05-09 15:24:43 +00:00
chore(nodeserver): add font mime type
This commit is contained in:
parent
33ad2b4126
commit
77e6d833f6
1 changed files with 4 additions and 1 deletions
|
|
@ -80,7 +80,10 @@ StaticServlet.MimeMap = {
|
||||||
'jpeg': 'image/jpeg',
|
'jpeg': 'image/jpeg',
|
||||||
'gif': 'image/gif',
|
'gif': 'image/gif',
|
||||||
'png': 'image/png',
|
'png': 'image/png',
|
||||||
'manifest': 'text/cache-manifest'
|
'manifest': 'text/cache-manifest',
|
||||||
|
// it should be application/font-woff
|
||||||
|
// but only this silences chrome warnings
|
||||||
|
'woff': 'font/opentype'
|
||||||
};
|
};
|
||||||
|
|
||||||
StaticServlet.prototype.handleRequest = function(req, res) {
|
StaticServlet.prototype.handleRequest = function(req, res) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue