Skip to content

manifest: use private mime type database

Bitbucket Importer requested to merge bitbucket/merged-pr-326 into branch/2.6

Created originally on Bitbucket by Hans-Jakob (Hans-Jakob Holtz)

Was already merged in Bitbucket before import, marked as merged by the import user

manifest: use private mime type database

This fixes #1221

The private mime database starts out as a copy of the global mime database.
In particular, it contains all well-known types like image/jpeg and image/png.
We add/overwrite our own types into that database instead of the global one.
This private database is immune to subsequent changes to the global mime
database, such as mimetypes.init() or conflicting add_type(...) calls.

Merge request reports