Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/main/java/io/weaviate/client6/v1/api/Config.java
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,8 @@ public static class Custom extends Builder<Custom> {
* <strong>443</strong> for HTTPS connection and <strong>80</strong> for HTTP.
*/
public Custom scheme(String scheme) {
httpPort(scheme == "https" ? 443 : 80);
grpcPort(scheme == "https" ? 443 : 80);
httpPort("https".equals(scheme) ? 443 : 80);
grpcPort("https".equals(scheme) ? 443 : 80);
Comment thread
yazan-abu-obaideh marked this conversation as resolved.
return super.scheme(scheme);
}

Expand All @@ -169,7 +169,7 @@ public Custom httpHost(String httpHost) {
}

public Custom httpPort(int port) {
this.grpcPort = port;
this.httpPort = port;
return this;
}

Expand Down