From 29f6bbb683f0849ed35f407fa7a56fe056117279 Mon Sep 17 00:00:00 2001 From: Jonathan Date: Wed, 11 Oct 2017 18:39:31 +0200 Subject: [PATCH] Use the algorithm parameter --- httpbin/helpers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/httpbin/helpers.py b/httpbin/helpers.py index 6f84f50..9d75f54 100644 --- a/httpbin/helpers.py +++ b/httpbin/helpers.py @@ -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,