From 3f7091cbf22c483672aa6c07ad640ee2c3d18e5b Mon Sep 17 00:00:00 2001 From: hackrush Date: Wed, 25 Jul 2018 17:23:39 +0530 Subject: [PATCH] Make curl work in py3 again --- lbrynet/daemon/auth/factory.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lbrynet/daemon/auth/factory.py b/lbrynet/daemon/auth/factory.py index fed157cc0..86da0bbb1 100644 --- a/lbrynet/daemon/auth/factory.py +++ b/lbrynet/daemon/auth/factory.py @@ -14,8 +14,8 @@ log = logging.getLogger(__name__) class AuthJSONRPCResource(resource.Resource): def __init__(self, protocol): resource.Resource.__init__(self) - self.putChild("", protocol) - self.putChild(conf.settings['API_ADDRESS'], protocol) + self.putChild(b"", protocol) + self.putChild(conf.settings['API_ADDRESS'].encode(), protocol) def getChild(self, name, request): request.setHeader('cache-control', 'no-cache, no-store, must-revalidate')