mirror of
https://github.com/apache/activemq-artemis.git
synced 2025-02-21 01:15:50 +00:00
Don't auto-send STOMP content-length header if one was explicitly set
This commit is contained in:
parent
96b559307c
commit
642838c712
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user