diff options
| author | Barry Warsaw | 2014-12-15 18:44:17 -0500 |
|---|---|---|
| committer | Barry Warsaw | 2014-12-15 18:44:17 -0500 |
| commit | acf95993ceb605c71ad07a32a572ae1f0888a7de (patch) | |
| tree | cf0dfe685c8f6fcd5949b4ff3709f4481ddbe163 /src/mailman/rest/root.py | |
| parent | d91715ea8b2692475b0751742e131bc1673b138b (diff) | |
| download | mailman-acf95993ceb605c71ad07a32a572ae1f0888a7de.tar.gz mailman-acf95993ceb605c71ad07a32a572ae1f0888a7de.tar.zst mailman-acf95993ceb605c71ad07a32a572ae1f0888a7de.zip | |
Diffstat (limited to 'src/mailman/rest/root.py')
| -rw-r--r-- | src/mailman/rest/root.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mailman/rest/root.py b/src/mailman/rest/root.py index a8e975fed..a82f7cdef 100644 --- a/src/mailman/rest/root.py +++ b/src/mailman/rest/root.py @@ -66,8 +66,8 @@ class Root: # the case where no error is raised. if request.auth is None: raise falcon.HTTPUnauthorized( - b'401 Unauthorized', - b'The REST API requires authentication') + '401 Unauthorized', + 'The REST API requires authentication') if request.auth.startswith('Basic '): # b64decode() returns bytes, but we require a str. credentials = b64decode(request.auth[6:]).decode('utf-8') @@ -76,8 +76,8 @@ class Root: password != config.webservice.admin_pass): # Not authorized. raise falcon.HTTPUnauthorized( - b'401 Unauthorized', - b'User is not authorized for the REST API') + '401 Unauthorized', + 'User is not authorized for the REST API') return TopLevel() |
