From f8a99c60d892ff5790f8bc141ea798fc3c9f27ab Mon Sep 17 00:00:00 2001 From: Ozzieisaacs Date: Sun, 1 Dec 2019 09:33:11 +0100 Subject: [PATCH] Fix for #1096 (exception on digest request) --- cps/opds.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cps/opds.py b/cps/opds.py index e2930646..9198554b 100644 --- a/cps/opds.py +++ b/cps/opds.py @@ -47,7 +47,7 @@ def requires_basic_auth_if_no_ano(f): def decorated(*args, **kwargs): auth = request.authorization if config.config_anonbrowse != 1: - if not auth or not check_auth(auth.username, auth.password): + if not auth or auth.type != 'basic' or not check_auth(auth.username, auth.password): return authenticate() return f(*args, **kwargs) if config.config_login_type == constants.LOGIN_LDAP and services.ldap: