fix a bug of infinite loop in HTTP Header Parser