You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 16, 2020. It is now read-only.
In stomp.js, the Frame.prototype.toString function sets the content-length to the number of characters in the body. This is only valid if there is one byte per character.
I added the following function to calculate the number of bytes in the body:
Maybe there is a cleaner way of doing this. But this change worked for me.
There is possibly more issues of this type in stomp.js. The .length gives the number of characters and not the number of bytes in a string.
The text was updated successfully, but these errors were encountered:
In stomp.js, the Frame.prototype.toString function sets the content-length to the number of characters in the body. This is only valid if there is one byte per character.
I added the following function to calculate the number of bytes in the body:
and changed
to
Maybe there is a cleaner way of doing this. But this change worked for me.
There is possibly more issues of this type in stomp.js. The .length gives the number of characters and not the number of bytes in a string.
The text was updated successfully, but these errors were encountered: