From ba31ae19c643c1b5681525cbb75cf2a255ea6c37 Mon Sep 17 00:00:00 2001 From: Titus Fortner Date: Wed, 11 Oct 2023 18:04:07 -0500 Subject: [PATCH] [java] allow setting version in the Http Client Config (#12919) * [java] allow setting version in the Http Client Config * [java] set client config version as string and convert in Jdk Client --- .../org/openqa/selenium/remote/http/jdk/JdkHttpClient.java | 5 +++++ 1 file changed, 5 insertions(+) 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(); }