[#1933] Correctly add the wsencoder before the httpencoder as the httpencoder also handle ByteBuf
This commit is contained in:
parent
45524ea43e
commit
35cd13d10e
@ -183,7 +183,7 @@ public abstract class WebSocketServerHandshaker {
|
||||
p.replace(ctx.name(), "wsdecoder", newWebsocketDecoder());
|
||||
|
||||
encoderName = p.context(HttpResponseEncoder.class).name();
|
||||
p.addAfter(encoderName, "wsencoder", newWebSocketEncoder());
|
||||
p.addBefore(encoderName, "wsencoder", newWebSocketEncoder());
|
||||
}
|
||||
channel.writeAndFlush(response).addListener(new ChannelFutureListener() {
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user