diff options
author | bptato <nincsnevem662@gmail.com> | 2022-02-22 15:06:23 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2022-02-22 15:06:23 +0100 |
commit | 71c19058100f4aea06dcf912564037be59efdf57 (patch) | |
tree | 34feca387ae0bee818a2180a5d21b017440d13e3 /src | |
parent | 0b46fc3aa63c5351c7e93fe3bea1495da91d25f9 (diff) | |
download | chawan-71c19058100f4aea06dcf912564037be59efdf57.tar.gz |
Fix a windows compilation error
Diffstat (limited to 'src')
-rw-r--r-- | src/io/loader.nim | 2 |
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) |