From 4a535bf3de9e3406df9e6804950fc8e5298fe6f7 Mon Sep 17 00:00:00 2001 From: 180909 <734461790@qq.com> Date: Sun, 23 Jan 2022 16:31:42 +0800 Subject: [PATCH] bpo-46456:Add '.avif' mime to 'image/avif' --- Lib/mimetypes.py | 1 + .../NEWS.d/next/Library/2022-01-23-16-30-49.bpo-46456.LRAQ1h.rst | 1 + 2 files changed, 2 insertions(+) create mode 100644 Misc/NEWS.d/next/Library/2022-01-23-16-30-49.bpo-46456.LRAQ1h.rst diff --git a/Lib/mimetypes.py b/Lib/mimetypes.py index 4750408173ec07..56eb8d7d5de602 100644 --- a/Lib/mimetypes.py +++ b/Lib/mimetypes.py @@ -519,6 +519,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', diff --git a/Misc/NEWS.d/next/Library/2022-01-23-16-30-49.bpo-46456.LRAQ1h.rst b/Misc/NEWS.d/next/Library/2022-01-23-16-30-49.bpo-46456.LRAQ1h.rst new file mode 100644 index 00000000000000..861f5099ec074d --- /dev/null +++ b/Misc/NEWS.d/next/Library/2022-01-23-16-30-49.bpo-46456.LRAQ1h.rst @@ -0,0 +1 @@ +Add '.avif' mime to 'image/avif'.