about summary refs log tree commit diff stats
path: root/src/types
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2022-01-22 19:29:17 +0100
committerbptato <nincsnevem662@gmail.com>2022-01-22 19:37:58 +0100
commit8a8667d0449112373015e7eacc1014435036fe52 (patch)
tree7bdab5ce0006b68b94f4461d6b7c3c8b7e26d790 /src/types
parentc63d3f65f8cf29afafa1b90bcd3088d4e0fd8138 (diff)
downloadchawan-8a8667d0449112373015e7eacc1014435036fe52.tar.gz
Fix url parsing bug
I confused the path start state with the path state. Oops.
Diffstat (limited to 'src/types')
-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 4e1a52f7..2356fb73 100644
--- a/src/types/url.nim
+++ b/src/types/url.nim
@@ -532,7 +532,7 @@ proc basicParseUrl*(input: string, base = none(Url), url: var Url = Url(), overr
           return none(Url)
         url.host = host
         buffer = ""
-        state = PATH_STATE
+        state = PATH_START_STATE
         if override:
           return
       else: