summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorflywind <xzsflywind@gmail.com>2021-11-11 15:53:27 +0800
committerGitHub <noreply@github.com>2021-11-11 08:53:27 +0100
commit7313b70a6af3fec6f367dd72bdd4f7651bf60d21 (patch)
treed6685cb964e57da2062871f7e96fd60af66f8baf
parent036d894e6a13cf9792c3250e34252a225c73e468 (diff)
downloadNim-7313b70a6af3fec6f367dd72bdd4f7651bf60d21.tar.gz
correct cookie docs (#19122)
-rw-r--r--lib/pure/cookies.nim3
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