Content-Length of passed EBCDIC data may not be the actual content length

Issue #19 resolved
Mihael Schmidt repo owner created an issue

If EBCDIC data is passed on the call to stomp_command_send and the content-length is passed this may not represent the actual content length in the encoding sent to the caller.

EBCDIC ä = 1 byte

UTF-8 ä = 2 bytes

The passed content length may only be used for copying the data into the frame buffer. The content-length header needs to be recalculated based on the encoded data.

Comments (2)

  1. Log in to comment