[#1933] Correctly add the wsencoder before the httpencoder as the httpencoder also handle ByteBuf

This commit is contained in:
Norman Maurer 2013-10-19 20:53:57 +02:00
parent 45524ea43e
commit 35cd13d10e

View File

@ -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