Renew README to fit the modification of SetCookie method

fix #2214
This commit is contained in:
Andy Pan 2020-01-22 20:49:21 +08:00
parent 69a202dbbd
commit 999d49ff0c

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)