fixing http parser using characters instead character codes as required
fixing refactoring leftover