]> Cypherpunks repositories - gostls13.git/commitdiff
net/url: fix stale RFC 3986 links
authorjiahua wang <wjh180909@gmail.com>
Sat, 16 Oct 2021 15:19:57 +0000 (23:19 +0800)
committerEmmanuel Odeke <emmanuel@orijtech.com>
Mon, 18 Oct 2021 21:57:36 +0000 (21:57 +0000)
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 <iant@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Emmanuel Odeke <emmanuel@orijtech.com>
Trust: Cherry Mui <cherryyz@google.com>

src/net/url/url_test.go

index 5059d34bf13cae65db7ed1c819a297500239ffb3..6807d58f1af6c98fb212ec4d4a7a7040cd6c4c47 100644 (file)
@@ -1172,7 +1172,7 @@ var resolveReferenceTests = []struct {
        {"http://foo.com/bar/baz", "quux/./dotdot/../dotdot/../dot/./tail/..", "http://foo.com/bar/quux/dot/"},
 
        // Remove any dot-segments prior to forming the target URI.
-       // http://tools.ietf.org/html/rfc3986#section-5.2.4
+       // https://datatracker.ietf.org/doc/html/rfc3986#section-5.2.4
        {"http://foo.com/dot/./dotdot/../foo/bar", "../baz", "http://foo.com/dot/baz"},
 
        // Triple dot isn't special
@@ -1192,7 +1192,7 @@ var resolveReferenceTests = []struct {
        {"http://foo.com/foo%2dbar/", "./baz-quux", "http://foo.com/foo%2dbar/baz-quux"},
 
        // RFC 3986: Normal Examples
-       // http://tools.ietf.org/html/rfc3986#section-5.4.1
+       // https://datatracker.ietf.org/doc/html/rfc3986#section-5.4.1
        {"http://a/b/c/d;p?q", "g:h", "g:h"},
        {"http://a/b/c/d;p?q", "g", "http://a/b/c/g"},
        {"http://a/b/c/d;p?q", "./g", "http://a/b/c/g"},
@@ -1218,7 +1218,7 @@ var resolveReferenceTests = []struct {
        {"http://a/b/c/d;p?q", "../../g", "http://a/g"},
 
        // RFC 3986: Abnormal Examples
-       // http://tools.ietf.org/html/rfc3986#section-5.4.2
+       // https://datatracker.ietf.org/doc/html/rfc3986#section-5.4.2
        {"http://a/b/c/d;p?q", "../../../g", "http://a/g"},
        {"http://a/b/c/d;p?q", "../../../../g", "http://a/g"},
        {"http://a/b/c/d;p?q", "/./g", "http://a/g"},