[#1513] Use the correct names when add the websocket decoder and encoder

This commit is contained in:
Norman Maurer 2013-07-03 19:54:08 +02:00
parent 7ec12d327f
commit 79576d15c2

View File

@ -177,8 +177,8 @@ public abstract class WebSocketServerHandshaker {
new IllegalStateException("No HttpDecoder and no HttpServerCodec in the pipeline"));
return;
}
p.addBefore(ctx.name(), "wsencoder", newWebsocketDecoder());
p.replace(ctx.name(), "wsdecoder", newWebSocketEncoder());
p.addBefore(ctx.name(), "wsdecoder", newWebsocketDecoder());
p.replace(ctx.name(), "wsencoder", newWebSocketEncoder());
} else {
p.replace(ctx.name(), "wsdecoder", newWebsocketDecoder());