Skip to content

Commit 3256ce3

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 35c6779 commit 3256ce3

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
@@ -484,10 +484,7 @@ def _default_mime_types():
484484
# Make sure the entry with the preferred file extension for a particular mime type
485485
# appears before any others of the same mimetype.
486486
types_map = _types_map_default = {
487-
'.js' : 'text/javascript',
488-
'.mjs' : 'text/javascript',
489487
'.dcm' : 'application/dicom',
490-
'.efi' : 'application/efi',
491488
'.epub' : 'application/epub+zip',
492489
'.gz' : 'application/gzip',
493490
'.json' : 'application/json',
@@ -657,30 +654,58 @@ def _default_mime_types():
657654
'.gltf' : 'model/gltf+json',
658655
'.glb' : 'model/gltf-binary',
659656
'.stl' : 'model/stl',
657+
'.appcache' : 'text/cache-manifest',
658+
'.manifest' : 'text/cache-manifest',
659+
'.ics' : 'text/calendar',
660+
'.ifb' : 'text/calendar',
661+
'.cql' : 'text/cql',
660662
'.css' : 'text/css',
661663
'.csv' : 'text/csv',
664+
'.csvs' : 'text/csv-schema',
665+
'.gff3' : 'text/gff3',
662666
'.html' : 'text/html',
663667
'.htm' : 'text/html',
668+
'.js' : 'text/javascript',
669+
'.mjs' : 'text/javascript',
670+
'.cnd' : 'text/jcr-cnd',
664671
'.md' : 'text/markdown',
665672
'.markdown': 'text/markdown',
673+
'.miz' : 'text/mizar',
666674
'.n3' : 'text/n3',
675+
'.org' : 'text/org',
667676
'.txt' : 'text/plain',
668677
'.bat' : 'text/plain',
669678
'.c' : 'text/plain',
670679
'.h' : 'text/plain',
671680
'.ksh' : 'text/plain',
672681
'.pl' : 'text/plain',
673682
'.srt' : 'text/plain',
683+
'.provn' : 'text/provenance-notation',
674684
'.rtx' : 'text/richtext',
685+
'.shaclc' : 'text/shaclc',
686+
'.shc' : 'text/shaclc',
687+
'.shex' : 'text/shex',
688+
'.spdx' : 'text/spdx',
675689
'.tsv' : 'text/tab-separated-values',
690+
'.ttl' : 'text/turtle',
691+
'.uri' : 'text/uri-list',
692+
'.uris' : 'text/uri-list',
693+
'.vcard' : 'text/vcard',
694+
'.vcf' : 'text/vcard',
695+
'.ascii' : 'text/vnd.ascii-art',
696+
'.curl' : 'text/vnd.curl',
697+
'.gml' : 'text/vnd.gml',
698+
'.gv' : 'text/vnd.graphviz',
676699
'.vtt' : 'text/vtt',
700+
'.wgsl' : 'text/wgsl',
677701
'.py' : 'text/x-python',
678702
'.rst' : 'text/x-rst',
679703
'.etx' : 'text/x-setext',
680704
'.sgm' : 'text/x-sgml',
681705
'.sgml' : 'text/x-sgml',
682706
'.vcf' : 'text/x-vcard',
683707
'.xml' : 'text/xml',
708+
'.ent' : 'text/xml-external-parsed-entity',
684709
'.mkv' : 'video/matroska',
685710
'.mk3d' : 'video/matroska-3d',
686711
'.mp4' : 'video/mp4',

0 commit comments

Comments
 (0)