khellang / MimeTypes

A simple lookup from file name/extension to MIME/media type, generated from mime-db, which in turn is compiled from IANA, Apache and nginx's MIME types.
Apache License 2.0
93 stars 23 forks source link

Throws "same key is already added exception" #3

Closed otake1977 closed 9 years ago

otake1977 commented 9 years ago

There are duplicates on some of the extensions which fails the initialization of the dictionary: ( 'sub', 'image/vnd.dvb.subtitle' ), ( 'sub', 'text/vnd.dvb.subtitle' ),

and

( 'wmz', 'application/x-ms-wmz' ), ( 'wmz', 'application/x-msmetafile' ),

khellang commented 9 years ago

Ouch! I'll take a look at it ASAP. Thanks! :+1:

khellang commented 9 years ago

Should be fixed with addb385cb63c0d7cbd381d43a0830ed07fa0039c, pushed a new version (v1.0.3).