Skip to content

Commit

Permalink
Update RequestConverter upgrade header handling. (SeleniumHQ#8766)
Browse files Browse the repository at this point in the history
  • Loading branch information
pujagani authored Oct 9, 2020
1 parent 76dc0ee commit 5172043
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ protected void channelRead0(
return;
}

if (nettyRequest.headers().contains("Sec-WebSocket-Version") ||
if (nettyRequest.headers().contains("Sec-WebSocket-Version") &&
"upgrade".equals(nettyRequest.headers().get("Connection"))) {
// Pass this on to later in the pipeline.
ReferenceCountUtil.retain(msg);
Expand Down

0 comments on commit 5172043

Please sign in to comment.