diff options
| -rw-r--r-- | pyramid/authentication.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pyramid/authentication.py b/pyramid/authentication.py index ec8ac0a41..2c301bd29 100644 --- a/pyramid/authentication.py +++ b/pyramid/authentication.py @@ -1184,6 +1184,8 @@ class BasicAuthAuthenticationPolicy(CallbackAuthenticationPolicy): except (TypeError, binascii.Error): # can't decode return None + # try utf-8 first, then latin-1; see discussion in + # https://github.com/Pylons/pyramid/issues/898 try: auth = authbytes.decode('utf-8') except UnicodeDecodeError: |
