Renew README to fit the modification of SetCookie method (#2217)

fix #2214
This commit is contained in:
Andy Pan 2020-01-23 07:54:08 +08:00 committed by Bo-Yi Wu
parent 69a202dbbd
commit 07c0f05f24
1 changed files with 1 additions and 1 deletions

View File

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