Merge pull request #391 from vanillajonathan/patch-3

Use the algorithm parameter
This commit is contained in:
Ian Stapleton Cordasco
2017-10-19 07:50:18 -05:00
committed by GitHub
+2 -2
View File
@@ -462,8 +462,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,