Browse Source

[contrib] add overrides for new mime types, regenerate mimetypes.conf

Change-Id: I6e0116b1f227c96eb98a6e45300030bc5cde72fd
master
Stefan Bühler 3 months ago
parent
commit
98ea1dc7de
  1. 23
      contrib/create-mimetypes.conf.pl
  2. 1047
      contrib/mimetypes.conf

23
contrib/create-mimetypes.conf.pl

@ -42,9 +42,32 @@ my %text_utf8 = map { $_ => 1 } qw(
# map extension to hash which maps types to the type they should be replaced with
my %manual_conflicts_resolve = (
'.asn' => {
'chemical/x-ncbi-asn1-spec' => 'application/octet-stream',
'chemical/x-ncbi-asn1' => 'application/octet-stream',
},
'.otf' => {
'application/font-sfnt' => 'font/otf',
'font/sfnt' => 'font/otf',
'font/ttf' => 'font/otf',
},
'.pcx' => {
'image/vnd.zbrush.pcx' => 'image/pcx',
},
'.png' => {
'image/vnd.mozilla.apng' => 'image/png',
},
'.ra' => {
'audio/x-pn-realaudio' => 'audio/x-realaudio',
},
'.ttf' => {
'application/font-sfnt' => 'font/ttf',
'font/sfnt' => 'font/ttf',
'font/otf' => 'font/ttf',
},
'.woff' => {
'application/font-woff' => 'font/woff',
},
);
open MIMETYPES, "/etc/mime.types" or die "Can't open mime.types: $!";

1047
contrib/mimetypes.conf
File diff suppressed because it is too large
View File

Loading…
Cancel
Save