Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor to keep node-mime specific enhancements out of the Apache ty…
…pes file. The _init() method is now mime.load(), and can be called more than once to load multiple files. This allows us to break node-mime definitions into: - mime.types: The Apache mime.types file - node.types: node-mime specific enhancements The rational for this is that we want to avoid making edits to this file locally because it complicates the process of updating the file when Apache updates their version. So instead, use node.types to define any enhancements that we can then "overlay" on top of whatever is defined in mime.types.
- Loading branch information
Showing
5 changed files
with
44 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
application/mp4 m4p | ||
application/octet-stream buffer | ||
audio/mp4 m4a |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,5 +7,5 @@ | |
, "dependencies" : [] | ||
, "lib" : "." | ||
, "main" : "mime.js" | ||
, "version" : "1.1.0" | ||
, "version" : "1.2.0" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters