summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Gerrand <adg@golang.org>2010-09-22 16:25:26 +1000
committerAndrew Gerrand <adg@golang.org>2010-09-22 16:25:26 +1000
commit6881cf7c0772b5384656ca102e1dcf71d43b9259 (patch)
tree7f51003927c58d139c7584d0530a12e2c3479517
parent56d1ebf77990bf04e538acb595d9735bf2113c48 (diff)
downloadgo-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.go2
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