Fix #2275 %s WebSocket version %s server handshake

This commit is contained in:
Dao Ngoc 2014-03-01 06:38:54 +09:00 committed by Trustin Lee
parent bdedde1294
commit 98d81b285c
2 changed files with 2 additions and 2 deletions

View File

@ -156,7 +156,7 @@ public abstract class WebSocketServerHandshaker {
HttpHeaders responseHeaders, final ChannelPromise promise) { HttpHeaders responseHeaders, final ChannelPromise promise) {
if (logger.isDebugEnabled()) { if (logger.isDebugEnabled()) {
logger.debug("%s WebSocket version %s server handshake", channel, version()); logger.debug("{} WebSocket version {} server handshake", channel, version());
} }
FullHttpResponse response = newHandshakeResponse(req, responseHeaders); FullHttpResponse response = newHandshakeResponse(req, responseHeaders);
ChannelPipeline p = channel.pipeline(); ChannelPipeline p = channel.pipeline();

View File

@ -111,7 +111,7 @@ public class WebSocketServerHandshaker07 extends WebSocketServerHandshaker {
String accept = WebSocketUtil.base64(sha1); String accept = WebSocketUtil.base64(sha1);
if (logger.isDebugEnabled()) { if (logger.isDebugEnabled()) {
logger.debug("WebSocket version 07 server handshake key: {}, response: %s.", key, accept); logger.debug("WebSocket version 07 server handshake key: {}, response: {}.", key, accept);
} }
res.headers().add(Names.UPGRADE, WEBSOCKET.toLowerCase()); res.headers().add(Names.UPGRADE, WEBSOCKET.toLowerCase());