diff options
author | bptato <nincsnevem662@gmail.com> | 2023-10-01 13:49:26 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2023-10-01 13:54:47 +0200 |
commit | 478db794b90ebd205a6a191369581adbd440fd4e (patch) | |
tree | 8de53429b40b9a7806c64541836e194c4f1b9662 /src/types | |
parent | 421eefcc7598bbe040f426ac93b0edbefcc437ba (diff) | |
download | chawan-478db794b90ebd205a6a191369581adbd440fd4e.tar.gz |
url: fix file slash state mistake
wrong indentation, so file:/abcd was getting stuck in file slash state and returning an empty pathname
Diffstat (limited to 'src/types')
-rw-r--r-- | src/types/url.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/types/url.nim b/src/types/url.nim index 1e05f016..ab8c9e8b 100644 --- a/src/types/url.nim +++ b/src/types/url.nim @@ -605,8 +605,8 @@ proc basicParseURL*(input: string, base = none(URL), url: URL = URL(), if not starts_with_windows_drive_letter(pointer) and bpath.len > 0 and bpath[0].is_normalized_windows_drive_letter(): url.path.append(bpath[0]) - state = PATH_STATE - dec pointer + state = PATH_STATE + dec pointer of FILE_HOST_STATE: if (not has or c in {'/', '\\', '?', '#'}): dec pointer |