]> Cypherpunks repositories - gostls13.git/commit
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)
commit56024fa64ebe87d5b209fa5d126b71ab27f7cf3d
treeadfc9465adcfe06fe89d70987a31dd38a4080103
parent81f534b216942c386d320ca380413353517d0644
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