Commits

Ginés Martínez Sánchez  committed 0938481 Draft

sockjs tests passed in python2/python3

  • Participants
  • Parent commits 7492b80

Comments (0)

Files changed (1)

File ginsfsm/c_sock.py

             The data are not really sent until _send_some() is called.
         """
         if isinstance(data, text_type):
-            data = data.encode(encoding='utf-8', errors='strict')
+            data = data.encode(encoding='latin-1', errors='strict')
         if data:
             if data.__class__ is ReadOnlyFileBasedBuffer:
                 # they used wsgi.file_wrapper