diff --git a/httpbin/helpers.py b/httpbin/helpers.py index 1f50c44..8836323 100644 --- a/httpbin/helpers.py +++ b/httpbin/helpers.py @@ -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,