Skip to content

Commit

Permalink
net/url: fix URL Opaque notes on making client requests
Browse files Browse the repository at this point in the history
Fixes #4860

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/7375047
  • Loading branch information
bradfitz committed Feb 21, 2013
1 parent 782cbb4 commit 0462aad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pkg/net/url/url.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0462aad

Please sign in to comment.