Skip to content

Commit 2ad4e85

Browse files
committed
Set chunk size of 4096 for body streaming
1 parent acf0115 commit 2ad4e85

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/io/ipfs/api/Multipart.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ public Multipart(String requestURL, String charset) {
2626
httpConn.setRequestProperty("Expect", "100-continue");
2727
httpConn.setRequestProperty("Content-Type", "multipart/form-data; boundary=" + boundary);
2828
httpConn.setRequestProperty("User-Agent", "Java IPFS CLient");
29+
httpConn.setChunkedStreamingMode(4096);
2930
out = httpConn.getOutputStream();
3031
} catch (IOException e) {
3132
throw new RuntimeException(e.getMessage(), e);

0 commit comments

Comments
 (0)