2
0
Fork 0

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

Change-Id: I6e0116b1f227c96eb98a6e45300030bc5cde72fd
This commit is contained in:
Stefan Bühler 2021-01-05 20:44:20 +01:00
parent 424e1a37f8
commit 98ea1dc7de
2 changed files with 1001 additions and 69 deletions

View File

@ -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: $!";

File diff suppressed because it is too large Load Diff