update set cookie example (#2312)

fix #2308
This commit is contained in:
Shilin Wang 2020-04-08 23:31:31 +08:00 committed by GitHub
parent 3315353c20
commit 4f208887e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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)