Skip to content

Commit 75f889e

Browse files
committed
Update MIME types in mimetypes.py
Reorder JavaScript MIME types and added several new MIME types including cache manifest, calendar, and provenance notation.
1 parent c32e264 commit 75f889e

1 file changed

Lines changed: 28 additions & 3 deletions

File tree

Lib/mimetypes.py

Lines changed: 28 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -475,10 +475,7 @@ def _default_mime_types():
475475
# Make sure the entry with the preferred file extension for a particular mime type
476476
# appears before any others of the same mimetype.
477477
types_map = _types_map_default = {
478-
'.js' : 'text/javascript',
479-
'.mjs' : 'text/javascript',
480478
'.dcm' : 'application/dicom',
481-
'.efi' : 'application/efi',
482479
'.epub' : 'application/epub+zip',
483480
'.gz' : 'application/gzip',
484481
'.json' : 'application/json',
@@ -644,30 +641,58 @@ def _default_mime_types():
644641
'.gltf' : 'model/gltf+json',
645642
'.glb' : 'model/gltf-binary',
646643
'.stl' : 'model/stl',
644+
'.appcache' : 'text/cache-manifest',
645+
'.manifest' : 'text/cache-manifest',
646+
'.ics' : 'text/calendar',
647+
'.ifb' : 'text/calendar',
648+
'.cql' : 'text/cql',
647649
'.css' : 'text/css',
648650
'.csv' : 'text/csv',
651+
'.csvs' : 'text/csv-schema',
652+
'.gff3' : 'text/gff3',
649653
'.html' : 'text/html',
650654
'.htm' : 'text/html',
655+
'.js' : 'text/javascript',
656+
'.mjs' : 'text/javascript',
657+
'.cnd' : 'text/jcr-cnd',
651658
'.md' : 'text/markdown',
652659
'.markdown': 'text/markdown',
660+
'.miz' : 'text/mizar',
653661
'.n3' : 'text/n3',
662+
'.org' : 'text/org',
654663
'.txt' : 'text/plain',
655664
'.bat' : 'text/plain',
656665
'.c' : 'text/plain',
657666
'.h' : 'text/plain',
658667
'.ksh' : 'text/plain',
659668
'.pl' : 'text/plain',
660669
'.srt' : 'text/plain',
670+
'.provn' : 'text/provenance-notation',
661671
'.rtx' : 'text/richtext',
672+
'.shaclc' : 'text/shaclc',
673+
'.shc' : 'text/shaclc',
674+
'.shex' : 'text/shex',
675+
'.spdx' : 'text/spdx',
662676
'.tsv' : 'text/tab-separated-values',
677+
'.ttl' : 'text/turtle',
678+
'.uri' : 'text/uri-list',
679+
'.uris' : 'text/uri-list',
680+
'.vcard' : 'text/vcard',
681+
'.vcf' : 'text/vcard',
682+
'.ascii' : 'text/vnd.ascii-art',
683+
'.curl' : 'text/vnd.curl',
684+
'.gml' : 'text/vnd.gml',
685+
'.gv' : 'text/vnd.graphviz',
663686
'.vtt' : 'text/vtt',
687+
'.wgsl' : 'text/wgsl',
664688
'.py' : 'text/x-python',
665689
'.rst' : 'text/x-rst',
666690
'.etx' : 'text/x-setext',
667691
'.sgm' : 'text/x-sgml',
668692
'.sgml' : 'text/x-sgml',
669693
'.vcf' : 'text/x-vcard',
670694
'.xml' : 'text/xml',
695+
'.ent' : 'text/xml-external-parsed-entity',
671696
'.mkv' : 'video/matroska',
672697
'.mk3d' : 'video/matroska-3d',
673698
'.mp4' : 'video/mp4',

0 commit comments

Comments
 (0)