mirror of https://github.com/apache/activemq.git
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) {
|
||||
if( !forLogging && getAction().equals(Stomp.Commands.KEEPALIVE) ) {
|
||||
return "\n";
|
||||
}
|
||||
StringBuilder buffer = new StringBuilder();
|
||||
buffer.append(getAction());
|
||||
buffer.append("\n");
|
||||
|
|
Loading…
Reference in New Issue