fixes #1405
Merge pull request #1446 from iElectric/guess_mimtype_test_fix

fixes #1405