Merge pull request #3139 from markshannon/fix/3138

Initialize hash_utf8 to None, preventing NameError. Fixes #3138.
This commit is contained in:
Ian Cordasco
2016-04-29 11:05:19 -05:00
+1
View File
@@ -93,6 +93,7 @@ class HTTPDigestAuth(AuthBase):
qop = self._thread_local.chal.get('qop')
algorithm = self._thread_local.chal.get('algorithm')
opaque = self._thread_local.chal.get('opaque')
hash_utf8 = None
if algorithm is None:
_algorithm = 'MD5'