Allow URI to contain a port number. (#3)

This commit is contained in:
rewcraig 2020-03-17 17:30:55 -07:00 committed by GitHub
parent b0bbb285d7
commit 648c26358d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -380,6 +380,7 @@ public class Commander {
uriBuilder.setHost(url.getHost());
if (url.getPath() != null) uriBuilder.setPath(url.getPath());
if (url.getQuery() != null) uriBuilder.setCustomQuery(url.getQuery());
if (url.getPort() >= 0) uriBuilder.setPort(url.getPort());
return uriBuilder.build();
} catch (Exception ex) {
LOG.error("ERROR in prepareURI: " + ex.toString());