mirror of https://github.com/gin-gonic/gin.git
Renew README to fit the modification of SetCookie method (#2217)
fix #2214
This commit is contained in:
parent
69a202dbbd
commit
07c0f05f24
|
@ -2025,7 +2025,7 @@ func main() {
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
cookie = "NotSet"
|
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)
|
fmt.Printf("Cookie value: %s \n", cookie)
|
||||||
|
|
Loading…
Reference in New Issue