Skip to content

Commit a389d69

Browse files
veebsNorman Maurer
authored andcommitted
Replaced deprecated 'sendUnsupportedWebSocketVersionResponse()' with 'sendUnsupportedVersionResponse()'
1 parent 4ee81d9 commit a389d69

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

codec-http/src/main/java/io/netty/handler/codec/http/websocketx/WebSocketServerProtocolHandshakeHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public void channelRead(final ChannelHandlerContext ctx, Object msg) throws Exce
6060
getWebSocketLocation(ctx.pipeline(), req, websocketPath), subprotocols, allowExtensions);
6161
final WebSocketServerHandshaker handshaker = wsFactory.newHandshaker(req);
6262
if (handshaker == null) {
63-
WebSocketServerHandshakerFactory.sendUnsupportedWebSocketVersionResponse(ctx.channel());
63+
WebSocketServerHandshakerFactory.sendUnsupportedVersionResponse(ctx.channel());
6464
} else {
6565
final ChannelFuture handshakeFuture = handshaker.handshake(ctx.channel(), req);
6666
handshakeFuture.addListener(new ChannelFutureListener() {

example/src/main/java/io/netty/example/http/websocketx/server/WebSocketServerHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ private void handleHttpRequest(ChannelHandlerContext ctx, FullHttpRequest req) t
101101
getWebSocketLocation(req), null, false);
102102
handshaker = wsFactory.newHandshaker(req);
103103
if (handshaker == null) {
104-
WebSocketServerHandshakerFactory.sendUnsupportedWebSocketVersionResponse(ctx.channel());
104+
WebSocketServerHandshakerFactory.sendUnsupportedVersionResponse(ctx.channel());
105105
} else {
106106
handshaker.handshake(ctx.channel(), req);
107107
}

example/src/main/java/io/netty/example/http/websocketx/sslserver/WebSocketSslServerHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ private void handleHttpRequest(ChannelHandlerContext ctx, FullHttpRequest req) t
9898
getWebSocketLocation(req), null, false);
9999
handshaker = wsFactory.newHandshaker(req);
100100
if (handshaker == null) {
101-
WebSocketServerHandshakerFactory.sendUnsupportedWebSocketVersionResponse(ctx.channel());
101+
WebSocketServerHandshakerFactory.sendUnsupportedVersionResponse(ctx.channel());
102102
} else {
103103
handshaker.handshake(ctx.channel(), req);
104104
}

testsuite/src/test/java/io/netty/testsuite/websockets/autobahn/AutobahnServerHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ private void handleHttpRequest(ChannelHandlerContext ctx, FullHttpRequest req)
8787
getWebSocketLocation(req), null, false, Integer.MAX_VALUE);
8888
handshaker = wsFactory.newHandshaker(req);
8989
if (handshaker == null) {
90-
WebSocketServerHandshakerFactory.sendUnsupportedWebSocketVersionResponse(ctx.channel());
90+
WebSocketServerHandshakerFactory.sendUnsupportedVersionResponse(ctx.channel());
9191
} else {
9292
handshaker.handshake(ctx.channel(), req);
9393
}

0 commit comments

Comments
 (0)