Skip to content
Permalink
Browse files

fix: uid assign in block

  • Loading branch information...
giuem committed Feb 11, 2019
1 parent e9de529 commit 078347fe0f99b2ae10c39903c16b8ccf64c237d9
Showing with 1 addition and 1 deletion.
  1. +1 −1 server/helper.go
@@ -14,7 +14,7 @@ import (
func getUUID(c *gin.Context) string {
uid, err := c.Cookie("uuid")
if err != nil { // cookie no found
uid := generateUUID(c.Request.UserAgent())
uid = generateUUID(c.Request.UserAgent())
c.SetCookie("uuid", uid, 2147483647, "/", "", false, false)
}

0 comments on commit 078347f

Please sign in to comment.
You can’t perform that action at this time.