Make curl work in py3 again

This commit is contained in:
hackrush 2018-07-25 17:23:39 +05:30 committed by Jack Robison
parent a95f791215
commit 3f7091cbf2
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2

View file

@ -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')