1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-20 03:17:04 +00:00

nothing important here

Former-commit-id: e6c4ade12d085cb8fa4989b15fa446b75ee114b2
This commit is contained in:
Gerasimos (Makis) Maropoulos
2019-07-15 09:58:05 +03:00
parent 2725267aa4
commit ccafe67c80
5 changed files with 20 additions and 13 deletions

View File

@@ -177,12 +177,12 @@ func (s *Sessions) decodeCookieValue(cookieValue string) string {
return ""
}
var cookieValueDecoded *string
var cookieValueDecoded string
if decode := s.config.Decode; decode != nil {
err := decode(s.config.Cookie, cookieValue, &cookieValueDecoded)
if err == nil {
cookieValue = *cookieValueDecoded
cookieValue = cookieValueDecoded
} else {
cookieValue = ""
}