modifié: superTornado.py

This commit is contained in:
sidya82 2014-04-02 17:37:13 +02:00
parent 61561ceada
commit a510738178
1 changed files with 2 additions and 2 deletions

View File

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