Skip to content

url: disallow percent in hosts for url.parse()

Rodrigo Muino Tomonari requested to merge github/fork/Trott/url-percent into main

Emulate WHATWG URL by throwing if there is a % character that is not part of a valid percent-encoding in the hostname. Otherwise, return punycode representation of encoded characters (also aligned with WHATWG URL).

Merge request reports

Loading