diff --git a/java/src/org/openqa/selenium/remote/http/jdk/JdkHttpClient.java b/java/src/org/openqa/selenium/remote/http/jdk/JdkHttpClient.java index 55c5e28d489ff1..327a0fdb85e5fd 100644 --- a/java/src/org/openqa/selenium/remote/http/jdk/JdkHttpClient.java +++ b/java/src/org/openqa/selenium/remote/http/jdk/JdkHttpClient.java @@ -168,6 +168,11 @@ public void connectFailed(URI uri, SocketAddress sa, IOException ioe) { builder.sslContext(sslContext); } + String version = config.version(); + if (version != null) { + builder.version(Version.valueOf(version)); + } + this.client = builder.build(); }