Skip to content

Commit

Permalink
Merge branch 'master' into remove-log
Browse files Browse the repository at this point in the history
  • Loading branch information
jsavell committed Aug 29, 2018
2 parents c8c0353 + 4315f3e commit f153a74
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ private boolean startArchivematicaTransfer(Document document, File archivematica
// writing to it
OutputStream os;
try {
logger.info("POSTing start transfer request to this URL: " + restUrl.toString());
os = connection.getOutputStream();
} catch (IOException e) {
IOException ioe = new IOException("Could not open output stream to write the post data. {" + e.getMessage() + "}");
Expand All @@ -205,7 +206,6 @@ private boolean startArchivematicaTransfer(Document document, File archivematica
params += "name=" + document.getProject().getName() + "_" + document.getName() + "&type=standard" + "&paths[]=" + encodedPath;
try {
logger.info("POST request parameters being sent to archivematica: " + params);

connection.getOutputStream().write(params.getBytes());

} catch (IOException e) {
Expand Down

0 comments on commit f153a74

Please sign in to comment.