diff options
author | bptato <nincsnevem662@gmail.com> | 2023-10-01 17:44:48 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2023-10-01 18:06:26 +0200 |
commit | 136d8d9e5c9a2a0414e4934cc928bca23bfe944b (patch) | |
tree | a35f3e30bc9839b612d7382a017c460fb335fd5b /src/loader/file.nim | |
parent | 478db794b90ebd205a6a191369581adbd440fd4e (diff) | |
download | chawan-136d8d9e5c9a2a0414e4934cc928bca23bfe944b.tar.gz |
Add w3m-cgi-compat option
Diffstat (limited to 'src/loader/file.nim')
-rw-r--r-- | src/loader/file.nim | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/loader/file.nim b/src/loader/file.nim index 5d552e40..cdb7afc2 100644 --- a/src/loader/file.nim +++ b/src/loader/file.nim @@ -108,11 +108,7 @@ proc loadFile(handle: LoaderHandle, istream: Stream) = if n < bufferSize: break -proc loadFilePath*(handle: LoaderHandle, url: URL) = - when defined(windows) or defined(OS2) or defined(DOS): - let path = url.path.serialize_unicode_dos() - else: - let path = url.path.serialize_unicode() +proc loadFilePath*(handle: LoaderHandle, url: URL, path: string) = let istream = newFileStream(path, fmRead) if istream == nil: if dirExists(path): |