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 6efac6179e
commit 94bcbba324
2 changed files with 2 additions and 2 deletions

View File

@ -156,7 +156,7 @@ public abstract class WebSocketServerHandshaker {
HttpHeaders responseHeaders, final ChannelPromise promise) {
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);
ChannelPipeline p = channel.pipeline();

View File

@ -113,7 +113,7 @@ public class WebSocketServerHandshaker07 extends WebSocketServerHandshaker {
String accept = WebSocketUtil.base64(sha1);
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);