Fix Stomp Broker Relay ignoring destination prefixes in some cases

Issue: SPR-16265
This commit is contained in:
Rémi Alvergnat 2017-12-05 15:10:56 +01:00 committed by Rossen Stoyanchev
parent 554662ebab
commit 76dcde9e31
1 changed files with 2 additions and 1 deletions

View File

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