Skip to content

Commit

Permalink
Renew README to fit the modification of SetCookie method (gin-gonic#2217
Browse files Browse the repository at this point in the history
  • Loading branch information
panjf2000 authored and ThomasObenaus committed Feb 19, 2020
1 parent 80d0c1c commit 938dce2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2025,7 +2025,7 @@ func main() {

if err != nil {
cookie = "NotSet"
c.SetCookie("gin_cookie", "test", 3600, "/", "localhost", false, true)
c.SetCookie("gin_cookie", "test", 3600, "/", "localhost", http.SameSiteLaxMode, false, true)
}

fmt.Printf("Cookie value: %s \n", cookie)
Expand Down

0 comments on commit 938dce2

Please sign in to comment.