Skip to content
This repository has been archived by the owner on Aug 22, 2019. It is now read-only.

Close the output stream before closing connection #9

Merged
merged 1 commit into from Feb 26, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions source/src/in/joind/JIRest.java
Expand Up @@ -160,6 +160,7 @@ protected int doMethodRequest(HttpURLConnection connection, JSONObject content)
if (content != null) {
OutputStream outputStream = new BufferedOutputStream(connection.getOutputStream());
outputStream.write(content.toString().getBytes(Charset.forName("UTF-8")));
outputStream.close();
}

// Get response
Expand Down