Kaydet (Commit) 8d66dcd0 authored tarafından Georg Brandl's avatar Georg Brandl

#2695: Do case-insensitive check for algorithms.

üst 83ea2a92
......@@ -976,6 +976,8 @@ class AbstractDigestAuthHandler:
return base
def get_algorithm_impls(self, algorithm):
# algorithm should be case-insensitive according to RFC2617
algorithm = algorithm.upper()
# lambdas assume digest modules are imported at the top level
if algorithm == 'MD5':
H = lambda x: hashlib.md5(x).hexdigest()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment