Skip to content

Commit 11bdce1

Browse files
committed
修复 socketd-transport-spring-websocket 不能通过子协议验证的问题
1 parent e6ba04e commit 11bdce1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

java/socketd-transport/socketd-transport-spring-websocket/src/main/java/org/noear/socketd/transport/spring/websocket/ToSocketdWebSocketListener.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ protected boolean assertHandshake(WebSocketSession conn) throws IOException {
152152

153153
@Override
154154
public List<String> getSubProtocols() {
155-
return Collections.singletonList(SocketD.protocolName());
155+
return Collections.singletonList(SocketD.protocolName().toLowerCase());
156156
}
157157

158158
private static class InnerChannelSupporter implements ChannelSupporter<WebSocketSession> {

0 commit comments

Comments
 (0)