There is a bug with the state. calling parse two times with a header causes different result on none header parsing.