Updated accept header handling.