summaryrefslogtreecommitdiffstats
path: root/Lib/mimetypes.py
diff options
context:
space:
mode:
authorkixorz <kixorz@users.noreply.github.com>2022-05-03 21:17:57 (GMT)
committerGitHub <noreply@github.com>2022-05-03 21:17:57 (GMT)
commit6dee69577ac22506d3fa59dcc13c9e0cb9ee3e8a (patch)
tree9ae6375454bb1786286a96cfdd9514fe954ad365 /Lib/mimetypes.py
parent65f88a6ef74c9b01017438e88e31570b02f1df9c (diff)
downloadcpython-6dee69577ac22506d3fa59dcc13c9e0cb9ee3e8a.zip
cpython-6dee69577ac22506d3fa59dcc13c9e0cb9ee3e8a.tar.gz
cpython-6dee69577ac22506d3fa59dcc13c9e0cb9ee3e8a.tar.bz2
bpo-45639: Add webp and avif image formats to mimetypes (#29259)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Diffstat (limited to 'Lib/mimetypes.py')
-rw-r--r--Lib/mimetypes.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/mimetypes.py b/Lib/mimetypes.py
index 1aa3246..f6c43b3 100644
--- a/Lib/mimetypes.py
+++ b/Lib/mimetypes.py
@@ -517,6 +517,7 @@ def _default_mime_types():
'.aiff' : 'audio/x-aiff',
'.ra' : 'audio/x-pn-realaudio',
'.wav' : 'audio/x-wav',
+ '.avif' : 'image/avif',
'.bmp' : 'image/bmp',
'.gif' : 'image/gif',
'.ief' : 'image/ief',
@@ -589,6 +590,7 @@ def _default_mime_types():
'.pict': 'image/pict',
'.pct' : 'image/pict',
'.pic' : 'image/pict',
+ '.webp': 'image/webp',
'.xul' : 'text/xul',
}