Skip to content

Commit

Permalink
Merge pull request #854 from lyuzb/master
Browse files Browse the repository at this point in the history
fix #851
  • Loading branch information
fangjian0423 committed Aug 19, 2019
2 parents 44884d7 + 9926c2b commit 1d04169
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -190,7 +190,7 @@ public void init() throws SocketException {
}

serverAddr = Objects.toString(serverAddr, "");
if (serverAddr.lastIndexOf("/") != -1) {
if (serverAddr.endsWith("/")) {
serverAddr = serverAddr.substring(0, serverAddr.length() - 1);
}
endpoint = Objects.toString(endpoint, "");
Expand Down

0 comments on commit 1d04169

Please sign in to comment.