mirror of
https://github.com/soypat/lneto.git
synced 2026-09-11 09:09:30 +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