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:
parent
82639f590b
commit
8353bd1f77
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue