diff --git a/src/net/url/url.go b/src/net/url/url.go index 64274a0a36..b60e238781 100644 --- a/src/net/url/url.go +++ b/src/net/url/url.go @@ -100,7 +100,7 @@ func (e InvalidHostError) Error() string { // reserved characters correctly. See golang.org/issue/5684. func shouldEscape(c byte, mode encoding) bool { // ยง2.3 Unreserved characters (alphanum) - if 'A' <= c && c <= 'Z' || 'a' <= c && c <= 'z' || '0' <= c && c <= '9' { + if 'a' <= c && c <= 'z' || 'A' <= c && c <= 'Z' || '0' <= c && c <= '9' { return false }