Skip to content

Commit ba31ae1

Browse files
titusfortneraguspe
authored andcommitted
[java] allow setting version in the Http Client Config (SeleniumHQ#12919)
* [java] allow setting version in the Http Client Config * [java] set client config version as string and convert in Jdk Client
1 parent b1ab743 commit ba31ae1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

java/src/org/openqa/selenium/remote/http/jdk/JdkHttpClient.java

+5
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,11 @@ public void connectFailed(URI uri, SocketAddress sa, IOException ioe) {
168168
builder.sslContext(sslContext);
169169
}
170170

171+
String version = config.version();
172+
if (version != null) {
173+
builder.version(Version.valueOf(version));
174+
}
175+
171176
this.client = builder.build();
172177
}
173178

0 commit comments

Comments
 (0)