From a5107381789a0f4d7ae345c6f9d24f8687fbed5d Mon Sep 17 00:00:00 2001 From: sidya82 Date: Wed, 2 Apr 2014 17:37:13 +0200 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 0c02df8..4caa523 100644 --- a/superTornado.py +++ b/superTornado.py @@ -253,11 +253,11 @@ class WSocketHandler(BaseHandler,tornado.websocket.WebSocketHandler): data = "" isData = False for ligne in f: - if ligne == "--MOBOTIX_Fast_Serverpush--": + if ligne == "--MOBOTIX_Fast_Serverpush--\n": isData = False if isData == True : data = data + ligne.read() - if ligne == "ENDSECTION EVENT": + if ligne == "ENDSECTION EVENT\n": isData = True temp.write(f.read()) encoded = base64.b64encode(data)