Ben Kallus
Ben Kallus
# Background RFC 3986 (spec for URIs) defines a valid port string with the following grammar rule: - `port = *DIGIT` Here's the WHATWG URL spec definition: """ A URL-port...
urllib.parse.urlparse uses `int` to parse port numbers, which means they can contain signs, underscores, and whitespace. This patch adds a check to ensure that only numeric port numbers parse without...
Currently, the URL parser accepts non-ASCII digits such as `'౧'` in port numbers. This is in violation of both the WHATWG URL standard and the RFCs. This patch enforces that...
This could use a normalization
this could use a normalization
payload: `'GET / HTTP/1.1\r\nHost: b\r\nTest: \xff\r\n\r\n'`