Skip to content

Commit a7f2a8c

Browse files
committed
Fix HttpProxy constructor
1 parent 7a87c9d commit a7f2a8c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/java/io/split/android/client/SplitClientConfig.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1279,7 +1279,9 @@ private HttpProxy parseProxyHost(String proxyUri) {
12791279
}
12801280
}
12811281
String host = String.format("%s%s", uri.getHost(), uri.getPath());
1282-
return new HttpProxy(host, port, username, password);
1282+
return HttpProxy.newBuilder(host, port)
1283+
.basicAuth(username, password)
1284+
.build();
12831285
} catch (IllegalArgumentException e) {
12841286
Logger.e("Proxy URI not valid: " + e.getLocalizedMessage());
12851287
throw new IllegalArgumentException();

0 commit comments

Comments
 (0)