diff --git a/java/server/src/org/openqa/selenium/netty/server/RequestConverter.java b/java/server/src/org/openqa/selenium/netty/server/RequestConverter.java
index <HASH>..<HASH> 100644
--- a/java/server/src/org/openqa/selenium/netty/server/RequestConverter.java
+++ b/java/server/src/org/openqa/selenium/netty/server/RequestConverter.java
@@ -68,7 +68,7 @@ class RequestConverter extends SimpleChannelInboundHandler<HttpObject> {
         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);
Update RequestConverter upgrade header handling. (#<I>)