replace mimetype with content_type