Skip to content

Commit

Permalink
Change WOFF MIME type to application/font-woff
Browse files Browse the repository at this point in the history
The WOFF MIME Type was formally registered as `application/font-woff`:
http://www.iana.org/assignments/media-types/application/font-woff
  • Loading branch information
alrra committed Mar 28, 2013
1 parent 60e4236 commit a3e7929
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ eq(undefined, mime.extension('constructor'));
// Test node types
//

eq('application/font-woff', mime.lookup('file.woff'));
eq('application/octet-stream', mime.lookup('file.buffer'));
eq('audio/mp4', mime.lookup('file.m4a'));

Expand Down
7 changes: 6 additions & 1 deletion types/node.types
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ application/x-lua-bytecode luac
# Added by: avoidwork
text/x-markdown markdown md mkd


# What: ini files
# Why: because they're just text files
# Added by: Matthew Kastor
Expand All @@ -69,3 +68,9 @@ text/plain ini
# Why: https://developer.mozilla.org/en-US/docs/DASH_Adaptive_Streaming_for_HTML_5_Video
# Added by: eelcocramer
application/dash+xml mdp

# What: Web Open Font Format (WOFF) font files - http://www.w3.org/TR/WOFF/
# Why: The WOFF MIME Type was formally registered as `application/font-woff`
# http://www.iana.org/assignments/media-types/application/font-woff
# Added by: alrra
application/font-woff woff

0 comments on commit a3e7929

Please sign in to comment.