diff --git a/internal/http/request/cookie.go b/internal/http/request/cookie.go index b5b234e0..fa7cb719 100644 --- a/internal/http/request/cookie.go +++ b/internal/http/request/cookie.go @@ -8,7 +8,7 @@ import "net/http" // CookieValue returns the cookie value. func CookieValue(r *http.Request, name string) string { cookie, err := r.Cookie(name) - if err == http.ErrNoCookie { + if err != nil { return "" }