mirror of https://github.com/shred/acme4j
Fix connection error
parent
9bcd5a2dd4
commit
becab450d8
|
@ -133,12 +133,12 @@ public class DefaultConnection implements Connection {
|
||||||
conn.setFixedLengthStreamingMode(outputData.length);
|
conn.setFixedLengthStreamingMode(outputData.length);
|
||||||
conn.connect();
|
conn.connect();
|
||||||
|
|
||||||
logHeaders();
|
|
||||||
|
|
||||||
try (OutputStream out = conn.getOutputStream()) {
|
try (OutputStream out = conn.getOutputStream()) {
|
||||||
out.write(outputData);
|
out.write(outputData);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
logHeaders();
|
||||||
|
|
||||||
session.setNonce(getNonceFromHeader(conn));
|
session.setNonce(getNonceFromHeader(conn));
|
||||||
|
|
||||||
return conn.getResponseCode();
|
return conn.getResponseCode();
|
||||||
|
|
Loading…
Reference in New Issue