From 28f28da2a2932aa3e6a15d8cc2950d49fa269b49 Mon Sep 17 00:00:00 2001 From: sidya82 Date: Fri, 28 Feb 2014 11:06:44 +0100 Subject: [PATCH] =?UTF-8?q?=09modifi=C3=A9:=20=20=20=20=20=20=20=20=20supe?= =?UTF-8?q?rTornado.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- superTornado.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/superTornado.py b/superTornado.py index beb49c4..5985523 100644 --- a/superTornado.py +++ b/superTornado.py @@ -101,7 +101,7 @@ class WSocketHandler(BaseHandler,tornado.websocket.WebSocketHandler): print "->Websocket opened" try : - f = urlopen('http://test:a@192.168.1.15/image.jpg?cidx=791836195') + f = urlopen('http://test:a@192.168.0.13/image.jpg?cidx=791836195') data = f.read() encoded = base64.b64encode(data) self.write_message(encoded) @@ -128,7 +128,7 @@ application = tornado.web.Application([ (r"/unauthorized", UnauthorizedHandler), (r"/disconnection", DisconnectionHandler), (r"/socket", WSocketHandler), - (r"/static/(.*)", web.StaticFileHandler, {"path": "/home/vmproxy/Bureau/ptut/"}) + (r"/static/(.*)", tornado.web.StaticFileHandler, {"path": "/home/vmproxy/Bureau/ptut/"}) ], cookie_secret="1213215656") if __name__ == "__main__":