From cc2fc5ea14528372aee6b0a6197125819d9338d7 Mon Sep 17 00:00:00 2001 From: "Felix Palta (office)" Date: Wed, 19 Oct 2016 15:35:21 +0300 Subject: [PATCH] Pass algorithm parameter to H() This fixes error 500 on digest-auth test with qop='auth-int' (#307) --- httpbin/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httpbin/helpers.py b/httpbin/helpers.py index 0946dea..5d59b2d 100644 --- a/httpbin/helpers.py +++ b/httpbin/helpers.py @@ -294,7 +294,7 @@ def HA2(credentails, request, algorithm): raise ValueError("%s required" % k) return H("%s:%s:%s" % (request['method'], request['uri'], - H(request['body'])), algorithm) + H(request['body'], algorithm)), algorithm) raise ValueError