@@ -151,62 +151,43 @@ describe('DB', function() {
151
151
it ( 'MDN types' , function ( ) {
152
152
// MDN types listed at https://goo.gl/lHrFU6
153
153
var MDN = {
154
- 'aac' : 'audio/aac' ,
155
- 'abw' : 'application/x-abiword' ,
156
- 'arc' : 'application/octet-stream' ,
157
- 'avi' : 'video/x-msvideo' ,
158
- 'azw' : 'application/vnd.amazon.ebook' ,
159
- 'bin' : 'application/octet-stream' ,
160
- 'bz' : 'application/x-bzip' ,
161
- 'bz2' : 'application/x-bzip2' ,
162
- 'csh' : 'application/x-csh' ,
163
- 'css' : 'text/css' ,
164
- 'csv' : 'text/csv' ,
165
- 'doc' : 'application/msword' ,
166
- 'epub' : 'application/epub+zip' ,
167
- 'gif' : 'image/gif' ,
168
- 'html' : 'text/html' ,
169
- 'ico' : 'image/x-icon' ,
170
- 'ics' : 'text/calendar' ,
171
- 'jar' : 'application/java-archive' ,
172
- 'jpg' : 'image/jpeg' ,
173
- 'js' : 'application/javascript' ,
174
- 'json' : 'application/json' ,
175
- 'midi' : 'audio/midi' ,
176
- 'mpeg' : 'video/mpeg' ,
177
- 'mpkg' : 'application/vnd.apple.installer+xml' ,
178
- 'odp' : 'application/vnd.oasis.opendocument.presentation' ,
179
- 'ods' : 'application/vnd.oasis.opendocument.spreadsheet' ,
180
- 'odt' : 'application/vnd.oasis.opendocument.text' ,
181
- 'oga' : 'audio/ogg' ,
182
- 'ogv' : 'video/ogg' ,
183
- 'ogx' : 'application/ogg' ,
184
- 'png' : 'image/png' ,
185
- 'pdf' : 'application/pdf' ,
186
- 'ppt' : 'application/vnd.ms-powerpoint' ,
187
- 'rar' : 'application/x-rar-compressed' ,
188
- 'rtf' : 'application/rtf' ,
189
- 'sh' : 'application/x-sh' ,
190
- 'svg' : 'image/svg+xml' ,
191
- 'swf' : 'application/x-shockwave-flash' ,
192
- 'tar' : 'application/x-tar' ,
193
- 'tiff' : 'image/tiff' ,
194
- 'ttf' : 'font/ttf' ,
195
- 'vsd' : 'application/vnd.visio' ,
196
- 'wav' : 'audio/x-wav' ,
197
- 'weba' : 'audio/webm' ,
198
- 'webm' : 'video/webm' ,
199
- 'webp' : 'image/webp' ,
200
- 'woff' : 'font/woff' ,
201
- 'woff2' : 'font/woff2' ,
202
- 'xhtml' : 'application/xhtml+xml' ,
203
- 'xls' : 'application/vnd.ms-excel' ,
204
- 'xml' : 'application/xml' ,
205
- 'xul' : 'application/vnd.mozilla.xul+xml' ,
206
- 'zip' : 'application/zip' ,
154
+ aac : 'audio/aac' ,
155
+ bin : 'application/octet-stream' ,
156
+ css : 'text/css' ,
157
+ csv : 'text/csv' ,
158
+ doc : 'application/msword' ,
159
+ docx : 'application/vnd.openxmlformats-officedocument.wordprocessingml.document' ,
160
+ gif : 'image/gif' ,
161
+ html : 'text/html' ,
162
+ ico : 'image/vnd.microsoft.icon' ,
163
+ jpg : 'image/jpeg' ,
164
+ js : 'application/javascript' ,
165
+ json : 'application/json' ,
166
+ midi : 'audio/midi' ,
167
+ mjs : 'application/javascript' ,
168
+ mp3 : 'audio/mpeg' ,
169
+ mpeg : 'video/mpeg' ,
170
+ oga : 'audio/ogg' ,
171
+ ogv : 'video/ogg' ,
172
+ otf : 'font/otf' ,
173
+ png : 'image/png' ,
174
+ pdf : 'application/pdf' ,
175
+ rtf : 'application/rtf' ,
176
+ svg : 'image/svg+xml' ,
177
+ swf : 'application/x-shockwave-flash' ,
178
+ tiff : 'image/tiff' ,
179
+ ttf : 'font/ttf' ,
180
+ txt : 'text/plain' ,
181
+ wav : 'audio/wav' ,
182
+ weba : 'audio/webm' ,
183
+ webm : 'video/webm' ,
184
+ webp : 'image/webp' ,
185
+ woff : 'font/woff' ,
186
+ xls : 'application/vnd.ms-excel' ,
187
+ xlsx : 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' ,
188
+ xml : 'application/xml' ,
189
+ zip : 'application/zip' ,
207
190
'3gp' : 'video/3gpp' ,
208
- '3g2' : 'video/3gpp2' ,
209
- '7z' : 'application/x-7z-compressed' ,
210
191
} ;
211
192
212
193
for ( var ext in MDN ) {
0 commit comments