From 969243d480bbe50c990f16acbf2cf286fbd08cd1 Mon Sep 17 00:00:00 2001 From: soypat Date: Sun, 25 May 2025 17:10:49 -0300 Subject: [PATCH] return error when no cookies found --- http/httpraw/cookie.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/http/httpraw/cookie.go b/http/httpraw/cookie.go index 091d3b0..d16b746 100644 --- a/http/httpraw/cookie.go +++ b/http/httpraw/cookie.go @@ -63,6 +63,9 @@ func (c *Cookie) Parse() error { }) off += n } + if len(c.kvs) == 0 { + return errNoCookies + } return nil }