mirror of
https://github.com/wahyd4/loginsrv.git
synced 2026-08-09 04:46:29 +10:00
fixed some reportcard findings
This commit is contained in:
@@ -492,6 +492,9 @@ func readCookiesParts(c *http.Cookie, parts []string) {
|
||||
continue
|
||||
case "max-age":
|
||||
secs, err := strconv.Atoi(val)
|
||||
if err != nil {
|
||||
break
|
||||
}
|
||||
c.MaxAge = secs
|
||||
continue
|
||||
case "expires":
|
||||
|
||||
Reference in New Issue
Block a user