summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Brewer <fumanchu@aminus.org>2008-08-20 17:18:28 +0000
committerRobert Brewer <fumanchu@aminus.org>2008-08-20 17:18:28 +0000
commit6f4e7dfce7d4f0c5be11bad824ba7b386aafc961 (patch)
tree0afbee0c84f7c0078e4446f4249f39132c1ce637
parente4968ac1710db133387975aa43790a8b22edf978 (diff)
downloadcherrypy-6f4e7dfce7d4f0c5be11bad824ba7b386aafc961.tar.gz
Typo in httpauth.py
-rw-r--r--cherrypy/lib/httpauth.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/cherrypy/lib/httpauth.py b/cherrypy/lib/httpauth.py
index 524db9a6..bc658244 100644
--- a/cherrypy/lib/httpauth.py
+++ b/cherrypy/lib/httpauth.py
@@ -275,7 +275,7 @@ def _computeDigestResponse(auth_map, password, method = "GET", A1 = None,**kwarg
else:
H_A1 = H(_A1(params, password))
- if qop == "auth" or aop == "auth-int":
+ if qop in ("auth", "auth-int"):
# If the "qop" value is "auth" or "auth-int":
# request-digest = <"> < KD ( H(A1), unq(nonce-value)
# ":" nc-value
@@ -290,7 +290,6 @@ def _computeDigestResponse(auth_map, password, method = "GET", A1 = None,**kwarg
params["qop"],
H_A2,
)
-
elif qop is None:
# If the "qop" directive is not present (this construction is
# for compatibility with RFC 2069):