simplify ws header check