Browse Source

Do not encode chunk, just write as is.

Tobias Bradtke 11 years ago
parent
commit
2bd6e3d0a5
1 changed files with 1 additions and 1 deletions
  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