]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1] net/url: Correctly escape URL as per RFC 3986
authorStéphane Travostino <stephane.travostino@gmail.com>
Thu, 5 Apr 2012 17:23:08 +0000 (13:23 -0400)
committerRuss Cox <rsc@golang.org>
Thu, 5 Apr 2012 17:23:08 +0000 (13:23 -0400)
commit70e139f3bc8f1f94b00bf68f24309d6092d6bde0
tree23a6a38531a126c602657e470a862e9e86b5047f
parent9b1d0910e1fe138ae30262e9bfe2910fdf4df392
[release-branch.go1] net/url: Correctly escape URL as per RFC 3986

««« backport 6b46fb967ca4
net/url: Correctly escape URL as per RFC 3986

The shouldEscape function did not correctly escape the reserved characters listed in RFC 3986 §2.2, breaking some strict web servers.
Fixes #3433.

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

»»»
src/pkg/net/url/url.go
src/pkg/net/url/url_test.go