diff options
author | Andrew Gerrand <adg@golang.org> | 2010-09-22 16:25:26 +1000 |
---|---|---|
committer | Andrew Gerrand <adg@golang.org> | 2010-09-22 16:25:26 +1000 |
commit | 6881cf7c0772b5384656ca102e1dcf71d43b9259 (patch) | |
tree | 7f51003927c58d139c7584d0530a12e2c3479517 | |
parent | 56d1ebf77990bf04e538acb595d9735bf2113c48 (diff) | |
download | go-6881cf7c0772b5384656ca102e1dcf71d43b9259.tar.gz |
http: escape _all_ reserved characters as per the RFC
R=r
CC=golang-dev
http://codereview.appspot.com/2199043
-rw-r--r-- | src/pkg/http/url.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/http/url.go b/src/pkg/http/url.go index 136e6dfe4..060619b83 100644 --- a/src/pkg/http/url.go +++ b/src/pkg/http/url.go @@ -61,7 +61,7 @@ func shouldEscape(c byte) bool { switch c { case '<', '>', '#', '%', '"', // RFC 2396 delims '{', '}', '|', '\\', '^', '[', ']', '`', // RFC2396 unwise - '?', '&', '=', '+': // RFC 2396 reserved in path + ';', '/', '?', ':', '@', '&', '=', '+', '$', ',': // RFC 2396 reserved return true } return false |