url encode without /

This commit is contained in:
alantong
2019-01-24 20:29:12 +08:00
parent 179aace121
commit 44c9c3fb79

View File

@@ -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