Fix connection error

pull/17/merge
Richard Körber 2015-12-19 14:46:50 +01:00
parent 9bcd5a2dd4
commit becab450d8
1 changed files with 2 additions and 2 deletions

View File

@ -133,12 +133,12 @@ public class DefaultConnection implements Connection {
conn.setFixedLengthStreamingMode(outputData.length);
conn.connect();
logHeaders();
try (OutputStream out = conn.getOutputStream()) {
out.write(outputData);
}
logHeaders();
session.setNonce(getNonceFromHeader(conn));
return conn.getResponseCode();