Skip to content

Commit 8d108b7

Browse files
committed
Fix proxy connect example that is not working as expected
1 parent ee9a263 commit 8d108b7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

core-examples/src/main/java/io/vertx/example/core/http/proxyconnect/Client.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public Future<?> start() throws Exception {
3131
.setHost("localhost")
3232
.setPort(8080));
3333
client = vertx.createHttpClient(options);
34-
return client.request(HttpMethod.GET, 8080, "localhost", "/")
34+
return client.request(HttpMethod.GET, 8282, "localhost", "/")
3535
.compose(request -> {
3636
request.setChunked(true);
3737
for (int i = 0; i < 10; i++) {

core-examples/src/main/java/io/vertx/example/core/http/proxyconnect/Proxy.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public Future<?> start() throws Exception {
6868
});
6969
} else {
7070

71-
System.out.println("Fail proxy connection");
71+
System.out.println("Fail proxy connection:" + ar.cause().getMessage());
7272
req.response().setStatusCode(403).end();
7373
}
7474
});

0 commit comments

Comments
 (0)