]> Cypherpunks repositories - gostls13.git/commit
net/url: add URL.RawFragment, URL.EscapedFragment
authorRuss Cox <rsc@golang.org>
Wed, 8 Apr 2020 19:00:41 +0000 (15:00 -0400)
committerRuss Cox <rsc@golang.org>
Thu, 16 Apr 2020 17:52:53 +0000 (17:52 +0000)
commit8c00e07c01c9864506054dfe5916fd343057b3db
tree510d4582316d1ede5f4a4a5064610cdfcc6ae7a7
parentd4d298040d072ddacea0e0d6b55fb148fff18070
net/url: add URL.RawFragment, URL.EscapedFragment

These are analogous to URL.RawPath and URL.EscapedPath
and allow users fine-grained control over how the fragment
section of the URL is escaped. Some tools care about / vs %2f,
same problem as in paths.

Fixes #37776.

Change-Id: Ie6f556d86bdff750c47fe65398cbafd834152b47
Reviewed-on: https://go-review.googlesource.com/c/go/+/227645
Reviewed-by: Emmanuel Odeke <emm.odeke@gmail.com>
doc/go1.15.html
src/net/url/example_test.go
src/net/url/url.go
src/net/url/url_test.go