Skip to content

net/url: percent encoded characters are not allowed in authority section #7991

@DanielMorsing

Description

@DanielMorsing
An alternative way of representing unicode hostnames which aren't meant for DNS lookup
is to encode the host as a UTF-8 string and then percent encode the octets outside of
the US-ASCII range. Currently the net/url parser bails when it encounters percent
encoding inside the host section. 

The relevant section of RFC 3986 is 3.2.2.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions