]> granicus.if.org Git - php/commit
Switch to mime-db as source of extension => MIME map
authorNikita Popov <nikita.ppv@gmail.com>
Wed, 24 Jun 2020 15:00:32 +0000 (17:00 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Thu, 13 Aug 2020 10:37:33 +0000 (12:37 +0200)
commite17ff61962927668f06cdbdb327122c3f06108e9
treeda88af4fa09065e3b97137714125c151e5af1145
parentcdc4e49b84230c98a27b788db9a9530bea2b8d17
Switch to mime-db as source of extension => MIME map

The Apache MIME type map is not actively maintained anymore, so
this switches to jshttp/mime-db, which seems to be the de-facto
standard in this area now. This avoid the need to patch in our
own MIME types over time.

The preference algorithm is based on:
https://github.com/jshttp/mime-types/blob/47b62ac45e9b176a2af35532d0eea4968bb9eb6d/index.js#L154

Closes GH-5764.
sapi/cli/generate_mime_type_map.php
sapi/cli/mime_type_map.h