Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ public void execute(String method, String url) {
if (getSecure() == 1) // Se completa con esquema y host
url = url.startsWith("https://") ? url : "https://" + getHost()+ (getPort() != 443?":"+getPort():"")+ url; // La lib de HttpClient agrega el port
else
url = url.startsWith("http://") ? url : "http://" + getHost() + ":" + (getPort() == -1? "80" :getPort()) + url;
url = url.startsWith("http://") ? url : "http://" + getHost() + (getPort() != 80?":"+getPort(): "") + url;

try (CloseableHttpClient httpClient = this.httpClientBuilder.build()) {
if (method.equalsIgnoreCase("GET")) {
Expand Down
Loading