From 759f01ff62bcbc812a277e981bc02eac55346bf3 Mon Sep 17 00:00:00 2001 From: Sebastian Mancke Date: Mon, 15 May 2017 12:09:00 +0200 Subject: [PATCH] fixed some reportcard findings --- login/handler_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/login/handler_test.go b/login/handler_test.go index b0ca19a..97ca4e0 100644 --- a/login/handler_test.go +++ b/login/handler_test.go @@ -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":