This closes #86 content-length change on stomp

This commit is contained in:
Clebert Suconic 2015-07-20 15:09:07 +01:00
commit fbfdacde66
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ public class StompFrameV11 extends StompFrame
head.append(h.getEncodedValue());
head.append(Stomp.NEWLINE);
}
if (bytesBody != null && bytesBody.length > 0)
if (bytesBody != null && bytesBody.length > 0 && !hasHeader(Stomp.Headers.CONTENT_LENGTH))
{
head.append(Stomp.Headers.CONTENT_LENGTH);
head.append(Stomp.Headers.SEPARATOR);