Skip to content

Commit

Permalink
net/url: fix stale RFC 3986 links
Browse files Browse the repository at this point in the history
The URLs for RFC 3986 have been changed from:
  http:https://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]>
  • Loading branch information
180909 authored and odeke-em committed Oct 18, 2021
1 parent 425db64 commit 3befaf0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/net/url/url_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1172,7 +1172,7 @@ var resolveReferenceTests = []struct {
{"http:https://foo.com/bar/baz", "quux/./dotdot/../dotdot/../dot/./tail/..", "http:https://foo.com/bar/quux/dot/"},

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

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

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

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

0 comments on commit 3befaf0

Please sign in to comment.