mirror of
https://github.com/apache/activemq.git
synced 2025-02-16 23:16:52 +00:00
Fixes https://issues.apache.org/jira/browse/AMQ-4840 - Invalid STOMP frame sent on websocket connections with heartbeats.
This commit is contained in:
parent
22dc6d444a
commit
f7311567a0
@ -182,6 +182,9 @@ public class StompFrame implements Command {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public String format(boolean forLogging) {
|
public String format(boolean forLogging) {
|
||||||
|
if( !forLogging && getAction().equals(Stomp.Commands.KEEPALIVE) ) {
|
||||||
|
return "\n";
|
||||||
|
}
|
||||||
StringBuilder buffer = new StringBuilder();
|
StringBuilder buffer = new StringBuilder();
|
||||||
buffer.append(getAction());
|
buffer.append(getAction());
|
||||||
buffer.append("\n");
|
buffer.append("\n");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user