Skip to content

Commit 76dcde9

Browse files
Toilalrstoyanchev
authored andcommitted
Fix Stomp Broker Relay ignoring destination prefixes in some cases
Issue: SPR-16265
1 parent 554662e commit 76dcde9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spring-messaging/src/main/java/org/springframework/messaging/simp/stomp/StompHeaderAccessor.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,8 @@ public StompCommand updateStompCommandAsClientMessage() {
197197
}
198198
StompCommand command = getCommand();
199199
if (command == null) {
200-
setHeader(COMMAND_HEADER, StompCommand.SEND);
200+
command = StompCommand.SEND
201+
setHeader(COMMAND_HEADER, command);
201202
}
202203
else if (!command.equals(StompCommand.SEND)) {
203204
throw new IllegalStateException("Unexpected STOMP command " + command);

0 commit comments

Comments
 (0)