diff options
Diffstat (limited to 'src/utils')
| -rw-r--r-- | src/utils/twtstr.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils/twtstr.nim b/src/utils/twtstr.nim index 1a38e6c5..ff1d7c6a 100644 --- a/src/utils/twtstr.nim +++ b/src/utils/twtstr.nim @@ -449,9 +449,9 @@ const ComponentPercentEncodeSet* = (UserInfoPercentEncodeSet + {'$'..'&', '+', ' const ApplicationXWWWFormUrlEncodedSet* = (ComponentPercentEncodeSet + {'!', '\''..')', '~'}) # used by client when defined(windows) or defined(OS2) or defined(DOS): - const LocalPathPercentEncodeSet* = (QueryPercentEncodeSet + {'?', ':'}) + const LocalPathPercentEncodeSet* = (Ascii - AsciiAlpha - AsciiDigit - {'\\', '/'}) else: - const LocalPathPercentEncodeSet* = (QueryPercentEncodeSet + {'?', ':', '\\'}) + const LocalPathPercentEncodeSet* = (Ascii - AsciiAlpha - AsciiDigit - {'/'}) proc percentEncode*(append: var string, c: char, set: set[char], spaceAsPlus = false) {.inline.} = if spaceAsPlus and c == ' ': |