Skip to content

Support webp formats in mimetypes as standard types #111741

Closed

Description

@Nachtalb

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

Activity

  1. added a commit that references this issue on Jan 31, 2024
  2. serhiy-storchaka commented on Jan 31, 2024

    @serhiy-storchaka
    Member

    Thank you for your contribution @Nachtalb.

  3. added a commit that references this issue on Feb 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.13only security fixestype-featureA feature request or enhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions