Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support webp formats in mimetypes as standard types #111741

Closed
Nachtalb opened this issue Nov 4, 2023 · 1 comment
Closed

Support webp formats in mimetypes as standard types #111741

Nachtalb opened this issue Nov 4, 2023 · 1 comment
Labels
3.13 new features, bugs and security fixes type-feature A feature request or enhancement

Comments

@Nachtalb
Copy link
Contributor

Nachtalb commented Nov 4, 2023

Feature or enhancement

Proposal:

WEBP is not recognised as a standard type and demands the user to use strict=False as in mimetypes.guess_type("foobar.webp", strict=False) to recognise it. This is because it was previously not recognised by IANA as an official type.

Since the introduction of webp support in the mimetypes module in #89802 it has officially been accepted to IANA and thus is not a "non-standard format" anymore.

Refs:

Has this already been discussed elsewhere?

This is a minor feature, which does not need previous discussion elsewhere

Links to previous discussion of this feature:

https://bugs.python.org/issue38902
https://bugs.python.org/issue45639
#89802

Linked PRs

@Nachtalb Nachtalb added the type-feature A feature request or enhancement label Nov 4, 2023
serhiy-storchaka pushed a commit that referenced this issue Jan 31, 2024
… module (GH-111742)

Previously it was supported as a non-standard type.
@serhiy-storchaka
Copy link
Member

Thank you for your contribution @Nachtalb.

@serhiy-storchaka serhiy-storchaka added the 3.13 new features, bugs and security fixes label Jan 31, 2024
aisk pushed a commit to aisk/cpython that referenced this issue Feb 11, 2024
…etypes module (pythonGH-111742)

Previously it was supported as a non-standard type.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.13 new features, bugs and security fixes type-feature A feature request or enhancement
Projects
None yet
Development

No branches or pull requests

2 participants