diff options
author | bptato <nincsnevem662@gmail.com> | 2022-01-19 20:58:43 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2022-01-19 20:58:43 +0100 |
commit | 5d90347a5627346ea95809781f321a0011257b32 (patch) | |
tree | 5bb99448bfabefb2c939ccdc0bb9f30b930da89d /src/client.nim | |
parent | d3692eb681e20f8076d2184cd54861ef8d12e31b (diff) | |
download | chawan-5d90347a5627346ea95809781f321a0011257b32.tar.gz |
Fix percent encoding function and local percent encoded paths
Diffstat (limited to 'src/client.nim')
-rw-r--r-- | src/client.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client.nim b/src/client.nim index 7ec5b3de..2de2a639 100644 --- a/src/client.nim +++ b/src/client.nim @@ -45,7 +45,7 @@ proc interruptError() = proc getPage(client: Client, url: Url): tuple[s: Stream, contenttype: string] = if url.scheme == "file": - let path = url.path.serialize() + let path = url.path.serialize_unicode() result.contenttype = guessContentType(path) result.s = newFileStream(path, fmRead) elif url.scheme == "http" or url.scheme == "https": |