joyent/http-parser — pull request #82 by ivosh (2012-01-27 10:22:20+00:00)
Title: http_parser_init does not clear status_code

The http parser does not clear its states properly after finished messages.
For example status_code remains set from the last message.
This proposed change fixes this bug, makes the code shorter, and facilitates introduction of future state variables.