Browse Source

Merge #295: python 3.4 byte string formatting fix for authorization header

1e2154d python 3.4 byte string formatting fix for authorization header (James Hilliard)
master
AdamISZ 7 years ago
parent
commit
d4a4628337
No known key found for this signature in database
GPG Key ID: 141001A1AF77F20B
  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