http-parser
http-parser copied to clipboard
uri-parser incorrect escape of pct-encoded?
From rfc3986:
userinfo = *( unreserved / pct-encoded / sub-delims / ":" )
pct-encoded = "%" HEXDIG HEXDIG
However, parse_url_char accepts a percent symbol followed by any userinfo characters. For example this is valid in the server field: x%z
https://github.com/nodejs/http-parser/blob/master/http_parser.c#L560
Is this intended?