cosmetic fixes
This commit is contained in:
parent
1da793ecb4
commit
d624688f08
3 changed files with 8 additions and 7 deletions
|
@ -14,6 +14,7 @@ module org.xbib.net.http.client.netty.secure.test {
|
|||
requires org.xbib.net.http.client;
|
||||
requires org.xbib.net.http.client.netty;
|
||||
requires org.xbib.net.http.client.netty.secure;
|
||||
requires io.netty.handler.proxy;
|
||||
exports org.xbib.net.http.client.netty.secure.test;
|
||||
opens org.xbib.net.http.client.netty.secure.test;
|
||||
}
|
||||
|
|
|
@ -46,8 +46,8 @@ class Https1Test {
|
|||
" headers = " + resp.getHeaders() +
|
||||
" body = " + resp.getBodyAsChars(StandardCharsets.UTF_8) +
|
||||
" ssl = " + dumpCertificates((HttpsResponse) resp)))
|
||||
.build();
|
||||
client.execute(request).get().close();
|
||||
.build();
|
||||
client.execute(request).get().close();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -24,16 +24,16 @@ class Http1Test {
|
|||
.setConfig(config)
|
||||
.build()) {
|
||||
HttpRequest request = HttpRequest.get()
|
||||
.setURL("http://httpbin.org")
|
||||
.setResponseListener(resp -> {
|
||||
.setURL("http://httpbin.org")
|
||||
.setResponseListener(resp -> {
|
||||
logger.log(Level.INFO,
|
||||
"local address = " + resp.getLocalAddress() +
|
||||
" got response = " + resp.getHeaders() +
|
||||
" got response = " + resp.getHeaders() +
|
||||
resp.getBodyAsChars(StandardCharsets.UTF_8) +
|
||||
" status=" + resp.getStatus());
|
||||
received.set(true);
|
||||
})
|
||||
.build();
|
||||
})
|
||||
.build();
|
||||
client.execute(request).get().close();
|
||||
}
|
||||
assertTrue(received.get());
|
||||
|
|
Loading…
Reference in a new issue