modifié: superTornado.py
This commit is contained in:
parent
a510738178
commit
c91bf1c400
@ -253,11 +253,12 @@ class WSocketHandler(BaseHandler,tornado.websocket.WebSocketHandler):
|
|||||||
data = ""
|
data = ""
|
||||||
isData = False
|
isData = False
|
||||||
for ligne in f:
|
for ligne in f:
|
||||||
if ligne == "--MOBOTIX_Fast_Serverpush--\n":
|
ligne = ligne.rstrip('\r\n')
|
||||||
|
if ligne == "--MOBOTIX_Fast_Serverpush--":
|
||||||
isData = False
|
isData = False
|
||||||
if isData == True :
|
if isData == True :
|
||||||
data = data + ligne.read()
|
data = data + ligne.read()
|
||||||
if ligne == "ENDSECTION EVENT\n":
|
if ligne == "ENDSECTION EVENT":
|
||||||
isData = True
|
isData = True
|
||||||
temp.write(f.read())
|
temp.write(f.read())
|
||||||
encoded = base64.b64encode(data)
|
encoded = base64.b64encode(data)
|
||||||
|
Reference in New Issue
Block a user