Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Stomp content-length header should be in bytes #315
In 1.9.x String#size doesn't return the number of bytes, but the number of characters. The Stomp protocol wants the number of bytes in the content-length header. Using String#size falls down when there are multibyte characters. I updated the header to use bytesize when it's available matching the form in EM::Connection#send_data.
I wasn't sure the best way to write a test for it. I'd be happy to update the test if given advice.