Explorar o código

Do not encode chunk, just write as is.

Tobias Bradtke %!s(int64=11) %!d(string=hai) anos
pai
achega
2bd6e3d0a5
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      fig/cli/socketclient.py

+ 1 - 1
fig/cli/socketclient.py

@@ -81,7 +81,7 @@ class SocketClient:
                 chunk = socket.recv(4096)
 
                 if chunk:
-                    stream.write(chunk.encode(stream.encoding or 'utf-8'))
+                    stream.write(chunk)
                     stream.flush()
                 else:
                     break