Fix #2275 %s WebSocket version %s server handshake
This commit is contained in:
parent
bdedde1294
commit
98d81b285c
@ -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();
|
||||||
|
@ -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());
|
||||||
|
Loading…
Reference in New Issue
Block a user