Fix #3952 (Android Browser Problem - 500 Internal Server Error)

This commit is contained in:
Kovid Goyal 2009-12-04 10:22:24 -07:00
parent 9c7da60b31
commit cceff8b6fd

View File

@ -225,7 +225,7 @@ def _A1(params, password):
algorithm = params.get ("algorithm", MD5) algorithm = params.get ("algorithm", MD5)
H = DIGEST_AUTH_ENCODERS[algorithm] H = DIGEST_AUTH_ENCODERS[algorithm]
if algorithm == MD5: if algorithm in (MD5, 'md5'):
# If the "algorithm" directive's value is "MD5" or is # If the "algorithm" directive's value is "MD5" or is
# unspecified, then A1 is: # unspecified, then A1 is:
# A1 = unq(username-value) ":" unq(realm-value) ":" passwd # A1 = unq(username-value) ":" unq(realm-value) ":" passwd