about summary refs log tree commit diff stats
path: root/src/utils
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2022-12-13 03:00:16 +0100
committerbptato <nincsnevem662@gmail.com>2022-12-13 03:01:10 +0100
commit1b9c56ac70d8a0af3cd39ba0d49f7651f6ac8fb4 (patch)
tree9a6c879b129c6e95d5b090dcc7f7b0078f666a2a /src/utils
parent89750ef4ad621fe7fdce533d1265f3d970098a19 (diff)
downloadchawan-1b9c56ac70d8a0af3cd39ba0d49f7651f6ac8fb4.tar.gz
Add network.max-redirect, prepend-https options
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/twtstr.nim4
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 == ' ':