set content length and mime type for enclosures