diff options
author | bptato <nincsnevem662@gmail.com> | 2022-12-13 23:42:33 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2022-12-13 23:42:33 +0100 |
commit | 0f3577949819daa31fbf8cd943d634f49d35c498 (patch) | |
tree | 494026b8fd0adc9fa94787dd4ba28b961f5ea992 /src/types | |
parent | e80ae4b136fe82f916868e1e9b728d69c403a70a (diff) | |
download | chawan-0f3577949819daa31fbf8cd943d634f49d35c498.tar.gz |
doc: fix headers; url: fix a shorten_path bug
Diffstat (limited to 'src/types')
-rw-r--r-- | src/types/url.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/types/url.nim b/src/types/url.nim index 0b4471e3..f0251fa8 100644 --- a/src/types/url.nim +++ b/src/types/url.nim @@ -325,7 +325,7 @@ func isempty(host: Host): bool = proc shorten_path(url: Url) {.inline.} = assert not url.path.opaque - if url.scheme == "file" and url.path.ss.len == 1 and url.path.ss[0][0] in Letters and url.path.ss[0][1] == ':': + if url.scheme == "file" and url.path.ss.len == 1 and url.path.ss[0].len == 2 and url.path.ss[0][0] in Letters and url.path.ss[0][1] == ':': return if url.path.ss.len > 0: discard url.path.ss.pop() |