Author bpypy
Recipients bpypy
Date 2018-08-05.16:48:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1533487728.36.0.56676864532.issue34340@psf.upfronthosting.co.za>
In-reply-to
Content
An obvious use case for mimetypes would be to check if file has correct mimetype, by getting the type with some of libmagic wrappers, and then comparing to guess_type result.

But it seems that they don't always match. One example:
applicattion/rar vs application/x-rar
https://github.com/file/file/blob/b9e60f088847f885b5c9fde61ff8fc9645843506/magic/Magdir/archive#L986

Kills half the usefullness of the module.
History
Date User Action Args
2018-08-05 16:48:48bpypysetrecipients: + bpypy
2018-08-05 16:48:48bpypysetmessageid: <1533487728.36.0.56676864532.issue34340@psf.upfronthosting.co.za>
2018-08-05 16:48:48bpypylinkissue34340 messages
2018-08-05 16:48:48bpypycreate