go build -race, will add instrumentation to catch race conditions.
It caught problem within DigestAuth.clients (map)
I'm attaching a copy of digest.go.
I changed the mutex to be a read/write mutex, so you could have finer grain control over it.
this copy doesn't cause problems with -race
Also I started to fix golint problems https://github.com/golang/lint. But stopped, because it was getting out of hand. (Sorry for dirtying up the answer)
digest.txt
go build -race, will add instrumentation to catch race conditions. It caught problem within DigestAuth.clients (map)
I'm attaching a copy of digest.go. I changed the mutex to be a read/write mutex, so you could have finer grain control over it. this copy doesn't cause problems with -race
Also I started to fix golint problems https://github.com/golang/lint. But stopped, because it was getting out of hand. (Sorry for dirtying up the answer) digest.txt
Thanks for your awesome work on the repo!!
digest.txt is really digest.go!