Skip to content

Commit

Permalink
Disabling keep-alive to prevent broken pipe errors
Browse files Browse the repository at this point in the history
  • Loading branch information
gotev committed Jan 28, 2015
1 parent 313ece8 commit 60ecf22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/com/alexbbb/uploadservice/UploadService.java
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ private byte[] getTrailerBytes(final String boundary) throws UnsupportedEncoding
conn.setUseCaches(false);
conn.setChunkedStreamingMode(0);
conn.setRequestMethod(method);
conn.setRequestProperty("Connection", "Keep-Alive");
conn.setRequestProperty("Connection", "close");
conn.setRequestProperty("ENCTYPE", "multipart/form-data");
conn.setRequestProperty("Content-Type", "multipart/form-data; boundary=" + boundary);

Expand Down

0 comments on commit 60ecf22

Please sign in to comment.