Improve detection of mimetype
Review Request #124442 - Created July 23, 2015 and submitted
This patch improves the mimetype detection when opening archives. Previously, the filename extension had higher priority than file content when determining mimetype. When opening an archive that had a wrong extension (as in bug 265971), this resulted in Ark failing to open it.
With this patch the mimetype is determined from file content. Additionally, a warning is shown in console output when mimetype from extension and content do not match.
Opening archives with wrong filename extensions now works as expected.