Fix regression in StompHeaderAccessor

Issue: SPR-16265
This commit is contained in:
Rossen Stoyanchev
2017-12-11 16:42:27 -05:00
parent 4b8a937bee
commit 4fe94dffc0

View File

@@ -194,7 +194,8 @@ public class StompHeaderAccessor extends SimpMessageHeaderAccessor {
}
StompCommand command = getCommand();
if (command == null) {
setHeader(COMMAND_HEADER, StompCommand.SEND);
command = StompCommand.SEND;
setHeader(COMMAND_HEADER, command);
}
else if (!command.equals(StompCommand.SEND)) {
throw new IllegalStateException("Unexpected STOMP command " + command);