reapplying Don't auto-send STOMP content-length header if one was explicitly set

I reverted this change by accident
This commit is contained in:
Clebert Suconic 2015-07-21 13:55:18 +01:00
parent 82639f590b
commit 8353bd1f77
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,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);