[PHRAS-26] Fix mime type detection
Merge pull request #1056 from jygaulier/phras-26

[PHRAS-26] Fix mime type detection