xinsnake / go-http-digest-auth-client

Golang Http Digest Authentication Client
BSD 2-Clause "Simplified" License
41 stars 68 forks source link

Case insensitive algorithm name and small optimization #16

Closed reinventer closed 4 years ago

reinventer commented 5 years ago

In my router, the authorization algorithm is named as “md5” (lower case) and this package does not work with it. I think it is better if the algorithm name is not case sensitive.

At the same time I did a little optimization and got rid of using the regexp package.

Wrote some tests for it.