diff options
author | bptato <nincsnevem662@gmail.com> | 2024-01-06 20:25:39 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-01-06 20:25:39 +0100 |
commit | 969b894344e93c0f67f13795ee313f61f953528e (patch) | |
tree | 1bf48c7d1ba1b4002f21046b72092c0e2b41297c /src/types | |
parent | 30e648064e06f32e1a49e41fa4ce470719ca5938 (diff) | |
download | chawan-969b894344e93c0f67f13795ee313f61f953528e.tar.gz |
Fix some casing issues
Diffstat (limited to 'src/types')
-rw-r--r-- | src/types/cookie.nim | 2 | ||||
-rw-r--r-- | src/types/url.nim | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/types/cookie.nim b/src/types/cookie.nim index 93daf2a3..f55a150e 100644 --- a/src/types/cookie.nim +++ b/src/types/cookie.nim @@ -233,7 +233,7 @@ proc newCookie*(str: string, url: URL = nil): JSResult[Cookie] case key.toLowerAscii() of "expires": let date = parseCookieDate(val) - if date.issome: + if date.isSome: cookie.expires = date.get.toTime().toUnix() of "max-age": let x = parseInt64(val) diff --git a/src/types/url.nim b/src/types/url.nim index 75bc162e..f2957807 100644 --- a/src/types/url.nim +++ b/src/types/url.nim @@ -370,7 +370,7 @@ func unicodeToAscii(s: string, checkhyphens, checkbidi, checkjoiners, transitionalprocessing, verifydnslength: bool): Option[string] = let processed = s.processIdna(checkhyphens, checkbidi, checkjoiners, transitionalprocessing) - if processed.isnone: + if processed.isNone: return none(string) #error var labels: seq[string] var all = 0 |