diff --git a/src/main/java/io/vertx/core/http/impl/HttpClientImpl.java b/src/main/java/io/vertx/core/http/impl/HttpClientImpl.java index bc92a7398c5..2cc45e66d8c 100644 --- a/src/main/java/io/vertx/core/http/impl/HttpClientImpl.java +++ b/src/main/java/io/vertx/core/http/impl/HttpClientImpl.java @@ -262,8 +262,8 @@ public Function> redirectHandler() { } private void doRequest(RequestOptions request, PromiseInternal promise) { - String host = getHost(request); - int port = getPort(request); + final String host = getHost(request); + final int port = getPort(request); SocketAddress server = request.getServer(); if (server == null) { server = SocketAddress.inetSocketAddress(port, host); @@ -285,11 +285,13 @@ private void doRequest(RequestOptions request, PromiseInternal