Skip to content

Commit

Permalink
Renew README to fit the modification of SetCookie method (#2217)
Browse files Browse the repository at this point in the history
fix #2214
  • Loading branch information
panjf2000 authored and appleboy committed Jan 22, 2020
1 parent 69a202d commit 07c0f05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 07c0f05

Please sign in to comment.