support digest auth
Merge pull request #106 from michaelnsj/3.0

Merged.