[http] Parse headerline

This fix the way of parse a header line (Fix #5253 and supersede #5290)