Allow URI to contain a port number. (#3)
This commit is contained in:
parent
b0bbb285d7
commit
648c26358d
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue