joyent/http-parser — pull request #88 by dgwynne (2012-02-10 12:25:59+00:00)
Title: handle ipv6 addresses and don't allow 0-length host/ports

the v6 parsing works by adding extra states for working with the
[] notation for v6 addresses. hosts and ports cannot be 0-length
because we url parsing from ending when we expect those fields to
begin.

http_parser_parse_url gets a free check for the correctness of
CONNECT urls (they can only be host:port).

this addresses the following issues:

#74 URLs with 0-length host, port are considered valid
#29 IPV6 address will cause parsing to fail

i was bored and had my head in this space.