Make sure we are using the length of the encoded string in the protocol
authorJack Miller <jack@codezen.org>
Tue, 23 Jun 2015 17:17:43 +0000 (12:17 -0500)
committerJack Miller <jack@codezen.org>
Tue, 23 Jun 2015 17:17:43 +0000 (12:17 -0500)
commit1bf19f6a70f6bede69a84d8dae8c5bceb9330e47
tree0057244425013ef90d210affceb82b7095391fb0
parentf8a32534cf6fd9f3a240103fc58cd812327c3ca9
Make sure we are using the length of the encoded string in the protocol

Length of the unicode string doesn't necessarily equal the length of the
encoded string of bytes. Since we're using the len of the bytes on
receive, make sure we're giving it the len of the bytes on write as
well.
canto_next/protocol.py