Fixed wrong mimetype lookup for extensions, which was returning pseudo mimetypes