From 1e2154d4bf998c8d393638d39a7718b2a0a98e64 Mon Sep 17 00:00:00 2001 From: James Hilliard Date: Mon, 14 Jan 2019 08:43:04 +0800 Subject: [PATCH] python 3.4 byte string formatting fix for authorization header --- jmclient/jmclient/jsonrpc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jmclient/jmclient/jsonrpc.py b/jmclient/jmclient/jsonrpc.py index 073b293..dffe92f 100644 --- a/jmclient/jmclient/jsonrpc.py +++ b/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)