From 999d49ff0c3d9c493f68d0d21aa6a38dd76afdb2 Mon Sep 17 00:00:00 2001 From: Andy Pan Date: Wed, 22 Jan 2020 20:49:21 +0800 Subject: [PATCH] Renew README to fit the modification of SetCookie method fix #2214 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 6e0ceb27..966ffbc5 100644 --- a/README.md +++ b/README.md @@ -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)