diff options
| author | Barry Warsaw | 2014-12-11 21:18:12 -0500 |
|---|---|---|
| committer | Barry Warsaw | 2014-12-11 21:18:12 -0500 |
| commit | fe7d286db796630b3bef326bd5106591940c0b5f (patch) | |
| tree | 4a732db60a62d222a8dd998f596789022bbc64bf /src/mailman/rest/root.py | |
| parent | 930a1c05b441000fbe5c3c4d8ae36d08bfe3dcdd (diff) | |
| download | mailman-fe7d286db796630b3bef326bd5106591940c0b5f.tar.gz mailman-fe7d286db796630b3bef326bd5106591940c0b5f.tar.zst mailman-fe7d286db796630b3bef326bd5106591940c0b5f.zip | |
Diffstat (limited to 'src/mailman/rest/root.py')
| -rw-r--r-- | src/mailman/rest/root.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mailman/rest/root.py b/src/mailman/rest/root.py index 93a8f0086..a8e975fed 100644 --- a/src/mailman/rest/root.py +++ b/src/mailman/rest/root.py @@ -69,7 +69,8 @@ class Root: b'401 Unauthorized', b'The REST API requires authentication') if request.auth.startswith('Basic '): - credentials = b64decode(request.auth[6:]) + # b64decode() returns bytes, but we require a str. + credentials = b64decode(request.auth[6:]).decode('utf-8') username, password = credentials.split(':', 1) if (username != config.webservice.admin_user or password != config.webservice.admin_pass): |
