go-http-auth icon indicating copy to clipboard operation
go-http-auth copied to clipboard

Modify cache purging limit

Open athum opened this issue 4 years ago • 1 comments

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.

athum avatar Aug 28 '20 19:08 athum

@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).

athum avatar Aug 28 '20 19:08 athum