Skip to content

Commit

Permalink
[java] allow setting version in the Http Client Config (SeleniumHQ#12919
Browse files Browse the repository at this point in the history
)

* [java] allow setting version in the Http Client Config

* [java] set client config version as string and convert in Jdk Client
  • Loading branch information
titusfortner authored and aguspe committed Oct 29, 2023
1 parent b1ab743 commit ba31ae1
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit ba31ae1

Please sign in to comment.