From 2be7fbf5c858aa5163bc421fd3e35a77ed13da5f Mon Sep 17 00:00:00 2001 From: Nyo Date: Thu, 16 Jun 2016 14:57:54 +0200 Subject: [PATCH] .BANCHO. .FIX. Remove all self.finish() in handlers --- handlers/apiIsOnlineHandler.py | 5 +++-- handlers/apiOnlineUsersHandler.py | 5 +++-- handlers/apiServerStatusHandler.py | 5 +++-- handlers/ciTriggerHandler.py | 5 +++-- handlers/mainHandler.py | 2 +- 5 files changed, 13 insertions(+), 9 deletions(-) diff --git a/handlers/apiIsOnlineHandler.py b/handlers/apiIsOnlineHandler.py index cb3f08f..cd50757 100644 --- a/handlers/apiIsOnlineHandler.py +++ b/handlers/apiIsOnlineHandler.py @@ -30,6 +30,7 @@ class handler(requestHelper.asyncRequestHandler): data["status"] = statusCode # Send response - self.clear() + #self.clear() + self.write(json.dumps(data)) self.set_status(statusCode) - self.finish(json.dumps(data)) + #self.finish(json.dumps(data)) diff --git a/handlers/apiOnlineUsersHandler.py b/handlers/apiOnlineUsersHandler.py index bdaedc4..d40f17b 100644 --- a/handlers/apiOnlineUsersHandler.py +++ b/handlers/apiOnlineUsersHandler.py @@ -18,6 +18,7 @@ class handler(requestHelper.asyncRequestHandler): data["status"] = statusCode # Send response - self.clear() + #self.clear() + self.write(json.dumps(data)) self.set_status(statusCode) - self.finish(json.dumps(data)) + #self.finish(json.dumps(data)) diff --git a/handlers/apiServerStatusHandler.py b/handlers/apiServerStatusHandler.py index db06ef0..f840089 100644 --- a/handlers/apiServerStatusHandler.py +++ b/handlers/apiServerStatusHandler.py @@ -18,6 +18,7 @@ class handler(requestHelper.asyncRequestHandler): data["status"] = statusCode # Send response - self.clear() + #self.clear() + self.write(json.dump(data)) self.set_status(statusCode) - self.finish(json.dumps(data)) + #self.finish(json.dumps(data)) diff --git a/handlers/ciTriggerHandler.py b/handlers/ciTriggerHandler.py index 8eaec56..5ffe294 100644 --- a/handlers/ciTriggerHandler.py +++ b/handlers/ciTriggerHandler.py @@ -33,6 +33,7 @@ class handler(requestHelper.asyncRequestHandler): data["status"] = statusCode # Send response - self.clear() + #self.clear() + self.write(json.dumps(data)) self.set_status(statusCode) - self.finish(json.dumps(data)) + #self.finish(json.dumps(data)) diff --git a/handlers/mainHandler.py b/handlers/mainHandler.py index 7981139..5c40e57 100644 --- a/handlers/mainHandler.py +++ b/handlers/mainHandler.py @@ -242,4 +242,4 @@ class handler(SentryMixin, requestHelper.asyncRequestHandler): html += "
reverse engineering a protocol impossible to reverse engineer since always
we are actually reverse engineering bancho successfully. for the third time." self.write(html) #yield tornado.gen.Task(self.captureMessage, "test") - self.finish() + #self.finish()