mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-05-22 23:02:33 -04:00
Fix #3952 (Android Browser Problem - 500 Internal Server Error)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user