Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions Lib/mimetypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -644,30 +644,56 @@ def _default_mime_types():
'.gltf' : 'model/gltf+json',
'.glb' : 'model/gltf-binary',
'.stl' : 'model/stl',
'.appcache' : 'text/cache-manifest',
'.manifest' : 'text/cache-manifest',
'.ics' : 'text/calendar',
'.ifb' : 'text/calendar',
'.cql' : 'text/cql',
'.css' : 'text/css',
'.csv' : 'text/csv',
'.csvs' : 'text/csv-schema',
'.gff3' : 'text/gff3',
'.html' : 'text/html',
'.htm' : 'text/html',
'.cnd' : 'text/jcr-cnd',
'.md' : 'text/markdown',
'.markdown': 'text/markdown',
'.miz' : 'text/mizar',
'.n3' : 'text/n3',
'.org' : 'text/org',
'.txt' : 'text/plain',
'.bat' : 'text/plain',
'.c' : 'text/plain',
'.h' : 'text/plain',
'.ksh' : 'text/plain',
'.pl' : 'text/plain',
'.srt' : 'text/plain',
'.provn' : 'text/provenance-notation',
'.rtx' : 'text/richtext',
'.shaclc' : 'text/shaclc',
'.shc' : 'text/shaclc',
'.shex' : 'text/shex',
'.spdx' : 'text/spdx',
'.tsv' : 'text/tab-separated-values',
'.ttl' : 'text/turtle',
'.uri' : 'text/uri-list',
'.uris' : 'text/uri-list',
'.vcard' : 'text/vcard',
'.vcf' : 'text/vcard',
'.ascii' : 'text/vnd.ascii-art',
'.curl' : 'text/vnd.curl',
'.gml' : 'text/vnd.gml',
'.gv' : 'text/vnd.graphviz',
'.vtt' : 'text/vtt',
'.wgsl' : 'text/wgsl',
'.py' : 'text/x-python',
'.rst' : 'text/x-rst',
'.etx' : 'text/x-setext',
'.sgm' : 'text/x-sgml',
'.sgml' : 'text/x-sgml',
'.vcf' : 'text/x-vcard',
'.xml' : 'text/xml',
'.ent' : 'text/xml-external-parsed-entity',
'.mkv' : 'video/matroska',
'.mk3d' : 'video/matroska-3d',
'.mp4' : 'video/mp4',
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
Add the following MIME types with file extensions:

- ``.appcache`` and ``.manifest`` for ``text/cache-manifest``
- ``.ics`` and ``.ifb`` for ``text/calendar``
- ``.cql`` for ``text/cql``
- ``.csvs`` for ``text/csv-schema``
- ``.gff3`` for ``text/gff3``
- ``.cnd`` for ``text/jcr-cnd``
- ``.miz`` for ``text/mizar``
- ``.org`` for ``text/org``
- ``.provn`` for ``text/provenance-notation``
- ``.shaclc`` and ``.shc`` for ``text/shaclc``
- ``.shex`` for ``text/shex``
- ``.spdx`` for ``text/spdx``
- ``.ttl`` for ``text/turtle``
- ``.uri`` and ``.uris`` for ``text/uri-list``
- ``.vcard`` and ``.vcf`` for ``text/vcard``
- ``.ascii`` for ``text/vnd.ascii-art``
- ``.curl`` for ``text/vnd.curl``
- ``.gml`` for ``text/vnd.gml``
- ``.gv`` for ``text/vnd.graphviz``
- ``.wgsl`` for ``text/wgsl``
- ``.ent`` for ``text/xml-external-parsed-entity``
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe add your name here as well


(Contributed by Charlie Lin in :gh:`146342`.)
Loading