Fwd: Conflicting mime types
thomas at kluyver.me.uk
Tue Mar 5 03:29:22 PST 2013
I've just had a bug reported against PyXDG that a Mimetype test is
returning image/x-apple-ios-png instead of image/png.
Looking at the XML mime type definitions , this new mime type ('Apple
broken PNGs') has the same glob as regular pngs: *.png. They can be
distinguished by magic sniffing, but the test in question is specifically
for when only a filename is available.
Obviously, a filename like foo.png should be presumed to be image/png over
image/x-apple-ios-png. But how should this be done? Should we prefer
mimetypes without the x- prefix? Could there be a collision between two
mimetypes neither of which have an x-? Is there some other heuristic we can
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the xdg