Merge pull request #214 from wb14123/py3-str
fix str/byte issue in python 3
This commit is contained in:
commit
e476a54658
1 changed files with 1 additions and 1 deletions
|
@ -407,7 +407,7 @@ class TCPRelayHandler(object):
|
||||||
|
|
||||||
def _on_local_write(self):
|
def _on_local_write(self):
|
||||||
if self._data_to_write_to_local:
|
if self._data_to_write_to_local:
|
||||||
data = ''.join(self._data_to_write_to_local)
|
data = b''.join(self._data_to_write_to_local)
|
||||||
self._data_to_write_to_local = []
|
self._data_to_write_to_local = []
|
||||||
self._write_to_sock(data, self._local_sock)
|
self._write_to_sock(data, self._local_sock)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue