Skip to content

Commit 95d284f

Browse files
committed
reverted left one fix for secure endpoint
1 parent 39f277a commit 95d284f

File tree

1 file changed

+1
-4
lines changed
  • client-v2/src/main/java/com/clickhouse/client/api

1 file changed

+1
-4
lines changed

client-v2/src/main/java/com/clickhouse/client/api/Client.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -173,10 +173,7 @@ public Builder addEndpoint(String endpoint) {
173173
endpointURL.getProtocol().equalsIgnoreCase("http"))) {
174174
throw new IllegalArgumentException("Only HTTP and HTTPS protocols are supported");
175175
}
176-
if (endpointURL.toURI().getScheme().equalsIgnoreCase("https")) {
177-
this.configuration.put(ClickHouseClientOption.SSL.getKey(), "true");
178-
}
179-
} catch (java.net.MalformedURLException | URISyntaxException e) {
176+
} catch (java.net.MalformedURLException e) {
180177
throw new IllegalArgumentException("Endpoint should be a valid URL string", e);
181178
}
182179
if (endpoint.startsWith("https://")) {

0 commit comments

Comments
 (0)