From 2bd6e3d0a553166992f74622159192f8e9ef48b9 Mon Sep 17 00:00:00 2001 From: Tobias Bradtke Date: Tue, 27 May 2014 18:22:18 +0200 Subject: [PATCH] Do not encode chunk, just write as is. --- fig/cli/socketclient.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fig/cli/socketclient.py b/fig/cli/socketclient.py index 518b7af453..6cc1f2c570 100644 --- a/fig/cli/socketclient.py +++ b/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