Genius proxy working, with client_id auth

This commit is contained in:
James Barnsley
2018-08-20 21:37:18 +12:00
parent 34fbc8f411
commit 82a5470623
2 changed files with 37 additions and 5 deletions

View File

@ -164,7 +164,7 @@ class HttpHandler(tornado.web.RequestHandler):
# make sure the method exists
if hasattr(mem.iris, slug):
getattr(mem.iris, slug)(request=self.request, callback=lambda response, error=False: self.handle_result(id=id, method=slug, response=response, error=error))
getattr(mem.iris, slug)(request=self, callback=lambda response, error=False: self.handle_result(id=id, method=slug, response=response, error=error))
else:
self.handle_result(id=id, error={'code': 32601, 'message': "Method "+slug+" does not exist"})