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

Don't use x-* MIME types when possible #588

Open
Abion47 opened this issue Sep 20, 2024 · 1 comment
Open

Don't use x-* MIME types when possible #588

Abion47 opened this issue Sep 20, 2024 · 1 comment

Comments

@Abion47
Copy link

Abion47 commented Sep 20, 2024

MIME types that have the x-* prefix are by definition non-standard extension types. Many formats that used to use these types no longer do as they have become official MIME types recognized by the IANA, but the mime package is still using the x-* mime type on many of them. This can cause problems as many APIs will support the standard form but not the non-standard extension form, so they should be updated where appropriate.

Here are some examples:

audio/x-aiff => audio/aiff
audio/x-wav => audio/wav (or) audio/vnd.wav
@kevmoo
Copy link
Member

kevmoo commented Sep 28, 2024

Wondering if we should just base our data off https://github.com/patrickmccallum/mimetype-io/blob/master/src/mimeData.json or similar...hrm...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants