set content type and accept header