Commit ec003959 authored by Jérome Perrin's avatar Jérome Perrin

fixup! fixup! fixup! fixup! web_shadir: PY3 compatibility

parent 04166eb6
......@@ -61,7 +61,7 @@ class TestShaDirExternal(ShaDirMixin, ShaSecurityMixin, ERP5TypeTestCase):
# Define POST headers with Authentication
self.content_type = 'application/json'
authentication_string = b'lucas:lucas'
base64string = base64.b64decode(authentication_string).decode().strip()
base64string = base64.b64encode(authentication_string).decode().strip()
self.header_dict = {'Authorization': 'Basic %s' % base64string,
'Content-Type': self.content_type}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment