caddy/modules/caddyhttp/caddyauth
Aurelia 7a3d9d81fe
basicauth: Minor internal improvements (#3861)
* nitpicks and small improvements in basicauth module

1:
roll two if statements into one, since err will be nil in the second case anyhow

2:
unlock cache mutex after reading the key, as this happens by-value and reduces code complexity

3:
switch cache sync.Mutex to sync.RWMutex for better concurrency on cache fast track

* allocate the right kind of mutex
2020-11-13 15:28:21 -07:00
..
basicauth.go basicauth: Minor internal improvements (#3861) 2020-11-13 15:28:21 -07:00
caddyauth.go httpcaddyfile: Don't lowercase placeholder contents (fixes #3264) 2020-04-14 16:11:46 -06:00
caddyfile.go caddyhttp: Add client cert SAN placeholders 2020-06-11 16:19:07 -06:00
command.go caddyauth: Prevent user enumeration by timing 2020-10-31 10:51:05 -06:00
hashes.go caddyauth: Prevent user enumeration by timing 2020-10-31 10:51:05 -06:00