[grid] fixed reading the Connection header
fixed reading the Connection header
The value should be handled as case-insensitive value, see rfc6455.
@@ -84,7 +84,7 @@ protected void channelRead0(
}
if (nettyRequest.headers().contains("Sec-WebSocket-Version") &&
- "upgrade".equals(nettyRequest.headers().get("Connection"))) {
+ "upgrade".equalsIgnoreCase(nettyRequest.headers().get("Connection"))) {
// Pass this on to later in the pipeline.
ReferenceCountUtil.retain(msg);
ctx.fireChannelRead(msg);
