summaryrefslogtreecommitdiffstats
path: root/Lib/mimetypes.py
diff options
context:
space:
mode:
authorSahil Prajapati <sahilprjpt206@gmail.com>2024-11-12 06:48:38 (GMT)
committerGitHub <noreply@github.com>2024-11-12 06:48:38 (GMT)
commit599bfc986d2c32c507822ef785b63619bd616608 (patch)
treef25241540478bbe1dbda3e9f158e7444af0fb25c /Lib/mimetypes.py
parentc45be8aa71ad886e12e8c897274498e4d828c9a5 (diff)
downloadcpython-599bfc986d2c32c507822ef785b63619bd616608.zip
cpython-599bfc986d2c32c507822ef785b63619bd616608.tar.gz
cpython-599bfc986d2c32c507822ef785b63619bd616608.tar.bz2
gh-84852: Add MIME types for .eot, ,otf, .ttf, .woff and .woff2 fonts (#20199)
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Diffstat (limited to 'Lib/mimetypes.py')
-rw-r--r--Lib/mimetypes.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/mimetypes.py b/Lib/mimetypes.py
index fd343a7..210d226 100644
--- a/Lib/mimetypes.py
+++ b/Lib/mimetypes.py
@@ -479,6 +479,7 @@ def _default_mime_types():
'.m3u8' : 'application/vnd.apple.mpegurl',
'.xls' : 'application/vnd.ms-excel',
'.xlb' : 'application/vnd.ms-excel',
+ '.eot' : 'application/vnd.ms-fontobject',
'.ppt' : 'application/vnd.ms-powerpoint',
'.pot' : 'application/vnd.ms-powerpoint',
'.ppa' : 'application/vnd.ms-powerpoint',
@@ -543,6 +544,10 @@ def _default_mime_types():
'.aiff' : 'audio/x-aiff',
'.ra' : 'audio/x-pn-realaudio',
'.wav' : 'audio/x-wav',
+ '.otf' : 'font/otf',
+ '.ttf' : 'font/ttf',
+ '.woff' : 'font/woff',
+ '.woff2' : 'font/woff2',
'.avif' : 'image/avif',
'.bmp' : 'image/bmp',
'.gif' : 'image/gif',