]> Cypherpunks repositories - gostls13.git/commitdiff
net/url: fix URL Opaque notes on making client requests
authorBrad Fitzpatrick <bradfitz@golang.org>
Thu, 21 Feb 2013 22:39:16 +0000 (14:39 -0800)
committerBrad Fitzpatrick <bradfitz@golang.org>
Thu, 21 Feb 2013 22:39:16 +0000 (14:39 -0800)
Fixes #4860

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/7375047

src/pkg/net/url/url.go

index 9c08b35ba8f4facfc8f3f915ce1c56ae27d8b3fe..a39964ea17fed788c502ca0673072a6eb6345674 100644 (file)
@@ -225,7 +225,8 @@ func escape(s string, mode encoding) string {
 // slashes in the raw URL and which were %2f. This distinction is rarely important,
 // but when it is a client must use other routines to parse the raw URL or construct
 // the parsed URL. For example, an HTTP server can consult req.RequestURI, and
-// an HTTP client can use URL{Opaque: "/Go%2f"} instead of URL{Path: "/Go/"}.
+// an HTTP client can use URL{Host: "example.com", Opaque: "//example.com/Go%2f"}
+// instead of URL{Host: "example.com", Path: "/Go/"}.
 type URL struct {
        Scheme   string
        Opaque   string    // encoded opaque data