forked from nodejs/http-parser
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
implement parsing of v6 addresses and rejection of 0-length host and …
…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: i was bored and had my head in this space.
- Loading branch information
1 parent
7bc668c
commit 8da60bc
Showing
2 changed files
with
152 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters