Replaced mimetype with content_type