diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2021-04-21 07:41:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-21 07:41:33 +0200 |
commit | a9b62de8956af50424767408bbe30631c63b331b (patch) | |
tree | 1bedd3362d89ee8b2d4f0b6552630a2e203ef8f0 /lib/pure/cookies.nim | |
parent | 7bce1f8578eafffacd599401e709de279528e68b (diff) | |
download | Nim-a9b62de8956af50424767408bbe30631c63b331b.tar.gz |
CIs: attempt to use csources_v1 (#16282)
* CIs: attempt to use csources_v1 * also updated the BSDs * also updated azure pipelines * std modules should not itself use the 'std/' import dir... * compiler has to be careful with std/ for v1 booting
Diffstat (limited to 'lib/pure/cookies.nim')
-rw-r--r-- | lib/pure/cookies.nim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/pure/cookies.nim b/lib/pure/cookies.nim index 8d9cc0c95..25d701eb4 100644 --- a/lib/pure/cookies.nim +++ b/lib/pure/cookies.nim @@ -9,7 +9,7 @@ ## This module implements helper procs for parsing Cookies. -import std/[strtabs, times, options] +import strtabs, times, options type @@ -25,7 +25,7 @@ proc parseCookies*(s: string): StringTableRef = ## "Set-Cookie" header set by servers. runnableExamples: import std/strtabs - let cookieJar = parseCookies("a=1; foo=bar") + let cookieJar = parseCookies("a=1; foo=bar") assert cookieJar["a"] == "1" assert cookieJar["foo"] == "bar" @@ -46,7 +46,7 @@ proc parseCookies*(s: string): StringTableRef = proc setCookie*(key, value: string, domain = "", path = "", expires = "", noName = false, - secure = false, httpOnly = false, + secure = false, httpOnly = false, maxAge = none(int), sameSite = SameSite.Default): string = ## Creates a command in the format of ## `Set-Cookie: key=value; Domain=...; ...` |