go-http-auth
go-http-auth copied to clipboard
Modify cache purging limit
When the authenticator's cache is purged, there was a consistent slice bounds out of range [:200] with capacity 181
panic occurring. Purging the entire cache resolves this error.
This is moved over from https://github.com/abbot/go-http-auth/pull/68, which is closed.
@abbot this PR includes the unit tests. Let me know if you would like any updates! (especially w.r.t. eliminating the count
parameter altogeter).