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