We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d25ba00 commit 0961794Copy full SHA for 0961794
1 file changed
src/main/java/io/weaviate/client6/v1/api/Config.java
@@ -158,8 +158,8 @@ public static class Custom extends Builder<Custom> {
158
* <strong>443</strong> for HTTPS connection and <strong>80</strong> for HTTP.
159
*/
160
public Custom scheme(String scheme) {
161
- httpPort(scheme == "https" ? 443 : 80);
162
- grpcPort(scheme == "https" ? 443 : 80);
+ httpPort("https".equals(scheme) ? 443 : 80);
+ grpcPort("https".equals(scheme) ? 443 : 80);
163
return super.scheme(scheme);
164
}
165
@@ -169,7 +169,7 @@ public Custom httpHost(String httpHost) {
169
170
171
public Custom httpPort(int port) {
172
- this.grpcPort = port;
+ this.httpPort = port;
173
return this;
174
175
0 commit comments