Use the algorithm parameter

This commit is contained in:
Jonathan
2017-10-11 18:39:31 +02:00
committed by GitHub
parent cd60b61d77
commit 29f6bbb683
+2 -2
View File
@@ -459,8 +459,8 @@ def digest_challenge_response(app, qop, algorithm, stale = False):
str(time.time()).encode('ascii'),
b':',
os.urandom(10)
]), "MD5")
opaque = H(os.urandom(10), "MD5")
]), algorithm)
opaque = H(os.urandom(10), algorithm)
auth = WWWAuthenticate("digest")
auth.set_digest('me@kennethreitz.com', nonce, opaque=opaque,