From abe02ed89fa7f575877a882cb5ba337290eb27d1 Mon Sep 17 00:00:00 2001 From: Mark Shannon Date: Fri, 29 Apr 2016 16:49:24 +0100 Subject: [PATCH] Initialize hash_utf8 to None, preventing NameError. Fixes #3138. --- requests/auth.py | 1 + 1 file changed, 1 insertion(+) diff --git a/requests/auth.py b/requests/auth.py index edf4c8dc..73f8e9da 100644 --- a/requests/auth.py +++ b/requests/auth.py @@ -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'