joyent/http-parser — pull request #84 by dgwynne (2012-02-06 21:53:42+00:00)
Title: fix http_parser_parse_url when it's given urls like "http://host/path"

before this change it would include the last slash in the separator
between the schema and host as part of the host. we cant use the
trick used for skipping the separator before ports, query strings,
and fragments because if it was a CONNECT style url string (host:port)
it would skip the first character of the hostname.

work around this by introducing a few more states to represent these
separators in a url differently to what theyre separating. this in
turn lets us simplify the url parsing so can simply skip what it
considers delimiters rather than having to special case certain
types of url parts and skip their prefixes.