return error when no cookies found

This commit is contained in:
soypat
2025-05-25 17:10:49 -03:00
parent ebbc8e3ba4
commit 969243d480
+3
View File
@@ -63,6 +63,9 @@ func (c *Cookie) Parse() error {
})
off += n
}
if len(c.kvs) == 0 {
return errNoCookies
}
return nil
}