mirror of
https://github.com/soypat/lneto.git
synced 2026-08-08 00:43:40 +00:00
return error when no cookies found
This commit is contained in:
@@ -63,6 +63,9 @@ func (c *Cookie) Parse() error {
|
||||
})
|
||||
off += n
|
||||
}
|
||||
if len(c.kvs) == 0 {
|
||||
return errNoCookies
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user