mirror of
https://github.com/gin-gonic/gin.git
synced 2025-10-16 13:22:09 +08:00
Revert "docs: update"
This reverts commit 82716193b753dbcad6fee85973790727b7a31ae5.
This commit is contained in:
parent
82716193b7
commit
02514ec1f9
@ -2108,7 +2108,9 @@ func main() {
|
||||
router := gin.Default()
|
||||
|
||||
router.GET("/cookie", func(c *gin.Context) {
|
||||
|
||||
cookie, err := c.Cookie("gin_cookie")
|
||||
|
||||
if err != nil {
|
||||
cookie = "NotSet"
|
||||
c.SetCookie("gin_cookie", "test", 3600, "/", "localhost", false, true)
|
||||
|
Loading…
x
Reference in New Issue
Block a user