url encode without /
This commit is contained in:
@@ -52,7 +52,7 @@ func encodeURIComponent(s string) string {
|
|||||||
c := s[i]
|
c := s[i]
|
||||||
|
|
||||||
switch c {
|
switch c {
|
||||||
case '-', '_', '.', '!', '~', '*', '\'', '(', ')':
|
case '-', '_', '.', '!', '~', '*', '\'', '(', ')', '/':
|
||||||
continue
|
continue
|
||||||
default:
|
default:
|
||||||
// Unreserved according to RFC 3986 sec 2.3
|
// Unreserved according to RFC 3986 sec 2.3
|
||||||
|
|||||||
Reference in New Issue
Block a user