Commit d093bdbe authored by Andrew Gerrand's avatar Andrew Gerrand

http: escape _all_ reserved characters as per the RFC

R=r
CC=golang-dev
https://golang.org/cl/2199043
parent 22974fbe
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment