[http] simplify decode header code