about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--src/io/loader.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/io/loader.nim b/src/io/loader.nim
index d0181262..03834dc3 100644
--- a/src/io/loader.nim
+++ b/src/io/loader.nim
@@ -29,7 +29,7 @@ proc newFileLoader*(): FileLoader =
 proc getPage*(loader: FileLoader, url: Url, smethod: HttpMethod = HttpGet, mimetype = "", body: string = "", multipart: MultipartData = nil): LoadResult =
   if url.scheme == "file":
     when defined(windows) or defined(OS2) or defined(DOS):
-      let path = url.path.serialize_unicode_windows()
+      let path = url.path.serialize_unicode_dos()
     else:
       let path = url.path.serialize_unicode()
     result.contenttype = guessContentType(path)