changed mimetype arg to content_type.