We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 53053ba commit 650dee1Copy full SHA for 650dee1
api/src/main/java/io/grpc/Uri.java
@@ -257,7 +257,7 @@ public static Uri create(String s) {
257
int hostStart = userInfoEnd >= 0 ? userInfoEnd + 1 : 0;
258
int portStartColon = findPortStartColon(authority, hostStart);
259
if (portStartColon < 0) {
260
- builder.setRawHost(authority.substring(hostStart, authority.length()));
+ builder.setRawHost(authority.substring(hostStart));
261
} else {
262
builder.setRawHost(authority.substring(hostStart, portStartColon));
263
builder.setRawPort(authority.substring(portStartColon + 1));
0 commit comments