Skip to content

Commit

Permalink
update set cookie example (#2312)
Browse files Browse the repository at this point in the history
fix #2308
  • Loading branch information
linvis committed Apr 8, 2020
1 parent 3315353 commit 4f20888
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -2057,7 +2057,7 @@ func main() {

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

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

0 comments on commit 4f20888

Please sign in to comment.