Fixes https://issues.apache.org/jira/browse/AMQ-4840 - Invalid STOMP frame sent on websocket connections with heartbeats.

This commit is contained in:
Hiram Chirino 2013-10-30 13:55:55 -04:00
parent 22dc6d444a
commit f7311567a0
1 changed files with 3 additions and 0 deletions

View File

@ -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");