Replace deprecated mimetype by content_type