diff options
author | bptato <nincsnevem662@gmail.com> | 2024-11-15 17:21:38 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-11-15 17:21:38 +0100 |
commit | 040c960a2788bef9910eee0a3c98cef7890f9d23 (patch) | |
tree | 34aff3359befc7cba4c77056f8d38fb5286f3f92 /src/types | |
parent | 6f7965d978081194b464faa8441db607998a1679 (diff) | |
download | chawan-040c960a2788bef9910eee0a3c98cef7890f9d23.tar.gz |
twtstr: beforeLast -> untilLast
for consistency
Diffstat (limited to 'src/types')
-rw-r--r-- | src/types/cookie.nim | 2 |
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 |