Initialize hash_utf8 to None, preventing NameError. Fixes #3138.

This commit is contained in:
Mark Shannon
2016-04-29 16:49:24 +01:00
parent 252bfa7885
commit abe02ed89f
+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'