Skip to content

Commit 3befaf0

Browse files
180909odeke-em
authored andcommitted
net/url: fix stale RFC 3986 links
The URLs for RFC 3986 have been changed from: http://tools.ietf.org/html/rfc3986 to: https://datatracker.ietf.org/doc/html/rfc3986 Change-Id: I0662557d91bbb7de51d7ca4bc64e838741cd9074 Reviewed-on: https://go-review.googlesource.com/c/go/+/356429 Run-TryBot: Ian Lance Taylor <[email protected]> TryBot-Result: Go Bot <[email protected]> Reviewed-by: Emmanuel Odeke <[email protected]> Trust: Cherry Mui <[email protected]>
1 parent 425db64 commit 3befaf0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/net/url/url_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1172,7 +1172,7 @@ var resolveReferenceTests = []struct {
11721172
{"http://foo.com/bar/baz", "quux/./dotdot/../dotdot/../dot/./tail/..", "http://foo.com/bar/quux/dot/"},
11731173

11741174
// Remove any dot-segments prior to forming the target URI.
1175-
// http://tools.ietf.org/html/rfc3986#section-5.2.4
1175+
// https://datatracker.ietf.org/doc/html/rfc3986#section-5.2.4
11761176
{"http://foo.com/dot/./dotdot/../foo/bar", "../baz", "http://foo.com/dot/baz"},
11771177

11781178
// Triple dot isn't special
@@ -1192,7 +1192,7 @@ var resolveReferenceTests = []struct {
11921192
{"http://foo.com/foo%2dbar/", "./baz-quux", "http://foo.com/foo%2dbar/baz-quux"},
11931193

11941194
// RFC 3986: Normal Examples
1195-
// http://tools.ietf.org/html/rfc3986#section-5.4.1
1195+
// https://datatracker.ietf.org/doc/html/rfc3986#section-5.4.1
11961196
{"http://a/b/c/d;p?q", "g:h", "g:h"},
11971197
{"http://a/b/c/d;p?q", "g", "http://a/b/c/g"},
11981198
{"http://a/b/c/d;p?q", "./g", "http://a/b/c/g"},
@@ -1218,7 +1218,7 @@ var resolveReferenceTests = []struct {
12181218
{"http://a/b/c/d;p?q", "../../g", "http://a/g"},
12191219

12201220
// RFC 3986: Abnormal Examples
1221-
// http://tools.ietf.org/html/rfc3986#section-5.4.2
1221+
// https://datatracker.ietf.org/doc/html/rfc3986#section-5.4.2
12221222
{"http://a/b/c/d;p?q", "../../../g", "http://a/g"},
12231223
{"http://a/b/c/d;p?q", "../../../../g", "http://a/g"},
12241224
{"http://a/b/c/d;p?q", "/./g", "http://a/g"},

0 commit comments

Comments
 (0)