Fix http accept header checking methods