diff options
author | flywind <xzsflywind@gmail.com> | 2021-11-11 15:53:27 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-11 08:53:27 +0100 |
commit | 7313b70a6af3fec6f367dd72bdd4f7651bf60d21 (patch) | |
tree | d6685cb964e57da2062871f7e96fd60af66f8baf | |
parent | 036d894e6a13cf9792c3250e34252a225c73e468 (diff) | |
download | Nim-7313b70a6af3fec6f367dd72bdd4f7651bf60d21.tar.gz |
correct cookie docs (#19122)
-rw-r--r-- | lib/pure/cookies.nim | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/pure/cookies.nim b/lib/pure/cookies.nim index 132f64637..7bf34f75b 100644 --- a/lib/pure/cookies.nim +++ b/lib/pure/cookies.nim @@ -51,8 +51,7 @@ proc setCookie*(key, value: string, domain = "", path = "", ## Creates a command in the format of ## `Set-Cookie: key=value; Domain=...; ...` ## - - ## .. tip: Cookies can be vulnerable. Consider setting `secure=true`, `httpOnly=true` and `sameSite=Strict`. + ## .. tip:: Cookies can be vulnerable. Consider setting `secure=true`, `httpOnly=true` and `sameSite=Strict`. result = "" if not noName: result.add("Set-Cookie: ") result.add key & "=" & value |