Browse Source

python 3.4 byte string formatting fix for authorization header

master
James Hilliard 7 years ago
parent
commit
1e2154d4bf
  1. 2
      jmclient/jmclient/jsonrpc.py

2
jmclient/jmclient/jsonrpc.py

@ -79,7 +79,7 @@ class JsonRpc(object):
headers = {"User-Agent": "joinmarket",
"Content-Type": "application/json",
"Accept": "application/json"}
headers["Authorization"] = b"Basic %s" % base64.b64encode(self.authstr.encode('utf-8'))
headers["Authorization"] = b"Basic " + base64.b64encode(self.authstr.encode('utf-8'))
body = json.dumps(obj)

Loading…
Cancel
Save