Skip to content

Commit 0961794

Browse files
fix: #425
1 parent d25ba00 commit 0961794

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/main/java/io/weaviate/client6/v1/api/Config.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,8 @@ public static class Custom extends Builder<Custom> {
158158
* <strong>443</strong> for HTTPS connection and <strong>80</strong> for HTTP.
159159
*/
160160
public Custom scheme(String scheme) {
161-
httpPort(scheme == "https" ? 443 : 80);
162-
grpcPort(scheme == "https" ? 443 : 80);
161+
httpPort("https".equals(scheme) ? 443 : 80);
162+
grpcPort("https".equals(scheme) ? 443 : 80);
163163
return super.scheme(scheme);
164164
}
165165

@@ -169,7 +169,7 @@ public Custom httpHost(String httpHost) {
169169
}
170170

171171
public Custom httpPort(int port) {
172-
this.grpcPort = port;
172+
this.httpPort = port;
173173
return this;
174174
}
175175

0 commit comments

Comments
 (0)