diff --git a/handlers/mainHandler.py b/handlers/mainHandler.py index 1832d45..ef44d2d 100644 --- a/handlers/mainHandler.py +++ b/handlers/mainHandler.py @@ -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) diff --git a/pep.py b/pep.py index f96f8e0..0f8c19e 100644 --- a/pep.py +++ b/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()