aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-12-14 20:29:10 +0100
committerbptato <nincsnevem662@gmail.com>2024-12-14 20:29:10 +0100
commit430785e84444d18fbe6c97d53fc0d8bf635faf83 (patch)
treec8f46e7df29598491fef32cc31771d31122c5596 /src
parent16002b04f3923b3bc4001b38590385410a3e044c (diff)
downloadchawan-430785e84444d18fbe6c97d53fc0d8bf635faf83.tar.gz
url: fix file:/ serialization
file:/// is the standard serialization.
Diffstat (limited to 'src')
-rw-r--r--src/types/url.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/types/url.nim b/src/types/url.nim
index 305b84eb..80df920d 100644
--- a/src/types/url.nim
+++ b/src/types/url.nim
@@ -737,7 +737,7 @@ proc parseFile(input: openArray[char]; pointer: var int; base: Option[URL];
url: URL; override: bool): URLState =
url.scheme = "file"
url.hostname = ""
- url.hostType = htNone
+ url.hostType = htOpaque
if pointer < input.len and input[pointer] in {'/', '\\'}:
inc pointer
return input.parseFileSlash(pointer, base, url, override)