From cceff8b6fdf2a8aee05ae6200f46314f80236ebe Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 4 Dec 2009 10:22:24 -0700 Subject: [PATCH] Fix #3952 (Android Browser Problem - 500 Internal Server Error) --- src/cherrypy/lib/httpauth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cherrypy/lib/httpauth.py b/src/cherrypy/lib/httpauth.py index ea8448d339..a49b4b5385 100644 --- a/src/cherrypy/lib/httpauth.py +++ b/src/cherrypy/lib/httpauth.py @@ -225,7 +225,7 @@ def _A1(params, password): algorithm = params.get ("algorithm", MD5) H = DIGEST_AUTH_ENCODERS[algorithm] - if algorithm == MD5: + if algorithm in (MD5, 'md5'): # If the "algorithm" directive's value is "MD5" or is # unspecified, then A1 is: # A1 = unq(username-value) ":" unq(realm-value) ":" passwd