Skip to content

Commit f19f265

Browse files
committed
Add 'custom' key for DB .source property to make origin or MIME type more explicit.
1 parent 65f65ed commit f19f265

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ The JSON file is a map lookup for lowercased mime types.
4949
Each mime type has the following properties:
5050

5151
- `.source` - where the mime type is defined.
52-
If not set, it's probably a custom media type.
5352
- `apache` - [Apache common media types](http://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types)
5453
- `iana` - [IANA-defined media types](http://www.iana.org/assignments/media-types/media-types.xhtml)
5554
- `nginx` - [nginx media types](http://hg.nginx.org/nginx/raw-file/default/conf/mime.types)
55+
- `custom` - Loaded from custom set of types maintained in this repository.
5656
- `.extensions[]` - known extensions associated with this mime type.
5757
- `.compressible` - whether a file of this type can be gzipped.
5858
- `.charset` - the default charset associated with this type, if any.

scripts/build.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ addData(db, require('../src/apache-types.json'), 'apache')
1111
addData(db, require('../src/nginx-types.json'), 'nginx')
1212

1313
// now add all our custom data
14-
addData(db, require('../src/custom-types.json'))
14+
addData(db, require('../src/custom-types.json'), 'custom')
1515

1616
// finally, all custom suffix defaults
1717
var mime = require('../src/custom-suffix.json')

0 commit comments

Comments
 (0)