mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-09 22:43:34 +00:00
correct cookie docs (#19122)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user