.BANCHO. .HIDE. memes
This commit is contained in:
parent
a65a94b57d
commit
a1875401d3
|
@ -183,9 +183,8 @@ class handler(requestHelper.asyncRequestHandler):
|
|||
self.add_header("Connection", "keep-alive")
|
||||
self.add_header("Content-Type", "text/html; charset=UTF-8")
|
||||
self.add_header("Vary", "Accept-Encoding")
|
||||
#self.add_header("Content-Encoding", "gzip")
|
||||
#self.write(gzip.compress(responseData, 6))
|
||||
self.write(responseData)
|
||||
self.add_header("Content-Encoding", "gzip")
|
||||
self.write(gzip.compress(responseData, 6))
|
||||
except:
|
||||
msg = "**asyncppytornadovroom error** *(aka test server, ignore this)*\nUnhandled exception in mainHandler:\n```\n{}\n{}\n```".format(sys.exc_info(), traceback.format_exc())
|
||||
consoleHelper.printColored("[!] {}".format(msg), bcolors.RED)
|
||||
|
|
5
pep.py
5
pep.py
|
@ -190,6 +190,5 @@ if __name__ == "__main__":
|
|||
# Start tornado
|
||||
app = tornado.httpserver.HTTPServer(make_app())
|
||||
app.listen(serverPort)
|
||||
glob.iol = tornado.ioloop.IOLoop.instance()
|
||||
glob.iol.start()
|
||||
#tornado.ioloop.IOLoop.instance().start()
|
||||
iol = tornado.ioloop.IOLoop.instance()
|
||||
iol.start()
|
||||
|
|
Loading…
Reference in New Issue
Block a user