mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-21 22:07:51 +00:00
Auth token needs to be bytes, apparently.
This commit is contained in:
parent
3f2571480c
commit
9baedc97db
@ -928,7 +928,8 @@ class _Client(node.Node, pollmixin.PollMixin):
|
||||
random data in "api_auth_token" which must be echoed to API
|
||||
calls.
|
||||
"""
|
||||
return self.config.get_private_config('api_auth_token')
|
||||
return self.config.get_private_config(
|
||||
'api_auth_token').encode("ascii")
|
||||
|
||||
def _create_auth_token(self):
|
||||
"""
|
||||
|
@ -415,7 +415,7 @@ class Basic(testutil.ReallyEqualMixin, unittest.TestCase):
|
||||
f.write("deadbeef")
|
||||
|
||||
token = c.get_auth_token()
|
||||
self.assertEqual("deadbeef", token)
|
||||
self.assertEqual(b"deadbeef", token)
|
||||
|
||||
@defer.inlineCallbacks
|
||||
def test_web_staticdir(self):
|
||||
|
Loading…
Reference in New Issue
Block a user