fix accept header check