set content-type correctly