fix accept header handling when client sends no accept header