Prevent possible ClassCastException
This commit is contained in:
parent
737a350854
commit
8a9e602a66
@ -58,6 +58,7 @@ public class WebSocketServerProtocolHandler extends ChannelInboundMessageHandler
|
||||
}
|
||||
|
||||
public WebSocketServerProtocolHandler(String websocketPath, String subprotocols, boolean allowExtensions) {
|
||||
super(WebSocketFrame.class);
|
||||
this.websocketPath = websocketPath;
|
||||
this.subprotocols = subprotocols;
|
||||
this.allowExtensions = allowExtensions;
|
||||
|
@ -44,6 +44,7 @@ public class WebSocketServerProtocolHandshakeHandler
|
||||
|
||||
public WebSocketServerProtocolHandshakeHandler(String websocketPath, String subprotocols,
|
||||
boolean allowExtensions) {
|
||||
super(FullHttpRequest.class);
|
||||
this.websocketPath = websocketPath;
|
||||
this.subprotocols = subprotocols;
|
||||
this.allowExtensions = allowExtensions;
|
||||
|
Loading…
Reference in New Issue
Block a user