mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-10-02 04:09:01 +00:00
Fix Stomp Broker Relay ignoring destination prefixes in some cases
Issue: SPR-16265
This commit is contained in:
committed by
Rossen Stoyanchev
parent
554662ebab
commit
76dcde9e31
+2
-1
@@ -197,7 +197,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);
|
||||
|
||||
Reference in New Issue
Block a user