.BANCHO. .FIX. Remove all self.finish() in handlers

This commit is contained in:
Nyo 2016-06-16 14:57:54 +02:00
parent fa3e82be98
commit 2be7fbf5c8
5 changed files with 13 additions and 9 deletions

View File

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

View File

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

View File

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

View File

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

View File

@ -242,4 +242,4 @@ class handler(SentryMixin, requestHelper.asyncRequestHandler):
html += "</marquee><br><strike>reverse engineering a protocol impossible to reverse engineer since always</strike><br>we are actually reverse engineering bancho successfully. for the third time.</pre></body></html>"
self.write(html)
#yield tornado.gen.Task(self.captureMessage, "test")
self.finish()
#self.finish()