abbot / go-http-auth

Basic and Digest HTTP Authentication for golang http
Apache License 2.0
544 stars 121 forks source link

Modify cache purging limit #70

Open athum opened 4 years ago

athum commented 4 years ago

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 commented 4 years ago

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