This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author adamkonrad
Recipients adamkonrad
Date 2021-10-28.02:33:34
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1635388414.48.0.724029722643.issue45639@roundup.psfhosted.org>
In-reply-to
Content
Modern image types webp and avif are not recognized by the mimetypes module.

Problem: Many tools are written in Python and running on macOS. Good example is the AWS CLI. Running commands like "s3 sync" will save files with .webp and .avif extensions with incorrect "binary/octet-stream" Content-Type to S3. This creates additional problems with serving these resources over HTTP.

The webp and avif image types are supported by most browsers: https://caniuse.com/#feat=webp
https://caniuse.com/#feat=avif

While webp is fully supported and largely used, it is not officially registered with IANA.

Avif is currently less popular, it is fully registered with IANA.
https://www.iana.org/assignments/media-types/media-types.xhtml

Please consider the attached GitHub PR as a fix to these MIME Content-Type issues.
History
Date User Action Args
2021-10-28 02:33:35adamkonradsetrecipients: + adamkonrad
2021-10-28 02:33:34adamkonradsetmessageid: <1635388414.48.0.724029722643.issue45639@roundup.psfhosted.org>
2021-10-28 02:33:34adamkonradlinkissue45639 messages
2021-10-28 02:33:34adamkonradcreate