Skip to content

Switch to mime-db as source of extension => MIME map #5764

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

Closed
wants to merge 1 commit into from

Conversation

nikic
Copy link
Member

@nikic nikic commented Jun 24, 2020

This uses https://github.com/jshttp/mime-db in combination with the preference algorithm in https://github.com/jshttp/mime-types/blob/47b62ac45e9b176a2af35532d0eea4968bb9eb6d/index.js#L154 as the source of truth for our file extension => MIME mapping.

The Apache MIME types we previously used don't seem to be maintained anymore.

Most of the changes here are additions, but some of the existing MIME types also change.

@nikic
Copy link
Member Author

nikic commented Jun 29, 2020

Anyone have thoughts on this?

@php-pulls php-pulls closed this in e17ff61 Aug 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant