about summary refs log tree commit diff stats
path: root/src/client.nim
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2022-01-19 20:58:43 +0100
committerbptato <nincsnevem662@gmail.com>2022-01-19 20:58:43 +0100
commit5d90347a5627346ea95809781f321a0011257b32 (patch)
tree5bb99448bfabefb2c939ccdc0bb9f30b930da89d /src/client.nim
parentd3692eb681e20f8076d2184cd54861ef8d12e31b (diff)
downloadchawan-5d90347a5627346ea95809781f321a0011257b32.tar.gz
Fix percent encoding function and local percent encoded paths
Diffstat (limited to 'src/client.nim')
-rw-r--r--src/client.nim2
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":