Skip to content

Commit

Permalink
correct cookie docs (#19122)
Browse files Browse the repository at this point in the history
  • Loading branch information
ringabout authored Nov 11, 2021
1 parent 036d894 commit 7313b70
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/pure/cookies.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7313b70

Please sign in to comment.