Skip to content

Commit 4fe94df

Browse files
committed
Fix regression in StompHeaderAccessor
Issue: SPR-16265
1 parent 4b8a937 commit 4fe94df

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,8 @@ public StompCommand updateStompCommandAsClientMessage() {
194194
}
195195
StompCommand command = getCommand();
196196
if (command == null) {
197-
setHeader(COMMAND_HEADER, StompCommand.SEND);
197+
command = StompCommand.SEND;
198+
setHeader(COMMAND_HEADER, command);
198199
}
199200
else if (!command.equals(StompCommand.SEND)) {
200201
throw new IllegalStateException("Unexpected STOMP command " + command);

0 commit comments

Comments
 (0)