diff options
author | bptato <nincsnevem662@gmail.com> | 2022-12-13 11:33:50 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2022-12-13 11:33:50 +0100 |
commit | d4ec11f65d4748167c55a526eacfa63725a7c0a8 (patch) | |
tree | b24bf0af97437472d6862f2b1938cb225f7de8a9 /src/utils/twtstr.nim | |
parent | 1b9c56ac70d8a0af3cd39ba0d49f7651f6ac8fb4 (diff) | |
download | chawan-d4ec11f65d4748167c55a526eacfa63725a7c0a8.tar.gz |
Fix path mime type detection
Diffstat (limited to 'src/utils/twtstr.nim')
-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 ff1d7c6a..1afe54d9 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* = (Ascii - AsciiAlpha - AsciiDigit - {'\\', '/'}) + const LocalPathPercentEncodeSet* = (Ascii - AsciiAlpha - AsciiDigit - {'.', '\\', '/'}) else: - const LocalPathPercentEncodeSet* = (Ascii - AsciiAlpha - AsciiDigit - {'/'}) + const LocalPathPercentEncodeSet* = (Ascii - AsciiAlpha - AsciiDigit - {'.', '/'}) proc percentEncode*(append: var string, c: char, set: set[char], spaceAsPlus = false) {.inline.} = if spaceAsPlus and c == ' ': |