[http] a tiny state-assertion fix