mirror of
https://github.com/apache/activemq-artemis.git
synced 2025-02-22 18:30:43 +00:00
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…
x
Reference in New Issue
Block a user