Do not encode chunk, just write as is.

This commit is contained in:
Tobias Bradtke 2014-05-27 18:22:18 +02:00 committed by Aanand Prasad
parent d0b5bcf26a
commit 2bd6e3d0a5
1 changed files with 1 additions and 1 deletions

View File

@ -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