set the Content-Type field as per the spec