Skip to content

Commit 53beeb5

Browse files
committed
Adjusted test expectations as per #33646
1 parent de1e898 commit 53beeb5

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/net/url/url_test.go

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1429,16 +1429,16 @@ func TestParseErrors(t *testing.T) {
14291429
{"http://[::1]/", false},
14301430
{"http://[::1]a", true},
14311431
{"http://[::1]%23", true},
1432-
{"http://[::1%25en0]", false}, // valid zone id
1433-
{"http://[::1]:", false}, // colon, but no port OK
1434-
{"http://x:", false}, // colon, but no port OK
1435-
{"http://[::1]:%38%30", true}, // not allowed: % encoding only for non-ASCII
1436-
{"http://[::1%25%41]", false}, // RFC 6874 allows over-escaping in zone
1437-
{"http://[%10::1]", true}, // no %xx escapes in IP address
1438-
{"http://[::1]/%48", false}, // %xx in path is fine
1439-
{"http://%41:8080/", true}, // not allowed: % encoding only for non-ASCII
1440-
{"mysql://x@y(z:123)/foo", false}, // golang.org/issue/12023
1441-
{"mysql://x@y(1.2.3.4:123)/foo", false},
1432+
{"http://[::1%25en0]", false}, // valid zone id
1433+
{"http://[::1]:", false}, // colon, but no port OK
1434+
{"http://x:", false}, // colon, but no port OK
1435+
{"http://[::1]:%38%30", true}, // not allowed: % encoding only for non-ASCII
1436+
{"http://[::1%25%41]", false}, // RFC 6874 allows over-escaping in zone
1437+
{"http://[%10::1]", true}, // no %xx escapes in IP address
1438+
{"http://[::1]/%48", false}, // %xx in path is fine
1439+
{"http://%41:8080/", true}, // not allowed: % encoding only for non-ASCII
1440+
{"mysql://x@y(z:123)/foo", true}, // not well-formed per RFC 3986, github.com/golang/go/issues/33646
1441+
{"mysql://x@y(1.2.3.4:123)/foo", true},
14421442

14431443
{"http://[]%20%48%54%54%50%2f%31%2e%31%0a%4d%79%48%65%61%64%65%72%3a%20%31%32%33%0a%0a/", true}, // golang.org/issue/11208
14441444
{"http://a b.com/", true}, // no space in host name please

0 commit comments

Comments
 (0)