From 2943c8dbfed33fef972e2c62d8548ada4ca388f1 Mon Sep 17 00:00:00 2001 From: waicalibre <69391221+waicalibre@users.noreply.github.com> Date: Fri, 16 Oct 2020 04:40:33 +0000 Subject: [PATCH] Add image/webp to list of MIME types WebP is an open image format that's existed for 10 years and is supported by most modern web browsers: https://developer.mozilla.org/en-US/docs/Web/Media/Formats/Image_types#WebP. It should be in the list of media types. --- Lib/mimetypes.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Lib/mimetypes.py b/Lib/mimetypes.py index f3343c805452d0..716c8e8723856e 100644 --- a/Lib/mimetypes.py +++ b/Lib/mimetypes.py @@ -501,6 +501,7 @@ def _default_mime_types(): '.tiff' : 'image/tiff', '.tif' : 'image/tiff', '.ico' : 'image/vnd.microsoft.icon', + '.webp' : 'image/webp', '.ras' : 'image/x-cmu-raster', '.bmp' : 'image/x-ms-bmp', '.pnm' : 'image/x-portable-anymap',