set well-formatted content-type headers