mirror of
https://github.com/kennethreitz/httpbin.git
synced 2026-06-05 23:00:18 +00:00
Merge pull request #391 from vanillajonathan/patch-3
Use the algorithm parameter
This commit is contained in:
+2
-2
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user