Fix for strict MIME type checking.