juju / persistent-cookiejar

cookiejar is a fork of net/http/cookiejar that allows serialisation of the stored cookies
BSD 3-Clause "New" or "Revised" License
112 stars 75 forks source link

add RemoveAll(url) method #17

Closed natefinch closed 7 years ago

natefinch commented 7 years ago

This is to support the logout method in juju. Also it removes some confusion about whether or not to do this:

for _, c := range jar.Cookies(url) {
    jar.Remove(c)
}

(which doesn't work)

natefinch commented 7 years ago

not using this anymore