Fix mime_type variable accidental deletion