Message405145
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. |
|
Date |
User |
Action |
Args |
2021-10-28 02:33:35 | adamkonrad | set | recipients:
+ adamkonrad |
2021-10-28 02:33:34 | adamkonrad | set | messageid: <1635388414.48.0.724029722643.issue45639@roundup.psfhosted.org> |
2021-10-28 02:33:34 | adamkonrad | link | issue45639 messages |
2021-10-28 02:33:34 | adamkonrad | create | |
|