aboutsummaryrefslogtreecommitdiffstats
path: root/src/types
diff options
context:
space:
mode:
Diffstat (limited to 'src/types')
-rw-r--r--src/types/cookie.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/types/cookie.nim b/src/types/cookie.nim
index 305af9fa..60355995 100644
--- a/src/types/cookie.nim
+++ b/src/types/cookie.nim
@@ -125,7 +125,7 @@ proc `$`*(cookiejar: CookieJar): string =
# https://www.rfc-editor.org/rfc/rfc6265#section-5.1.4
func defaultCookiePath(url: URL): string =
- let path = url.pathname.beforeLast('/')
+ let path = url.pathname.untilLast('/')
if path == "" or path[0] != '/':
return "/"
return path