Skip to content

Commit d154cec

Browse files
committed
Add tests to illustrate bug in Multipart (mostly from tdiesler)
1 parent 745894f commit d154cec

File tree

4 files changed

+140
-1
lines changed

4 files changed

+140
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public List<MerkleNode> add(NamedStreamable file, boolean wrap, boolean hashOnly
8787
}
8888

8989
public List<MerkleNode> add(List<NamedStreamable> files, boolean wrap, boolean hashOnly) throws IOException {
90-
Multipart m = new Multipart(protocol + "://" + host + ":" + port + version + "add?w="+wrap + "&n="+hashOnly, "UTF-8");
90+
Multipart m = new Multipart(protocol + "://" + host + ":" + port + version + "add?stream-channels=true&w="+wrap + "&n="+hashOnly, "UTF-8");
9191
for (NamedStreamable file: files) {
9292
if (file.isDirectory()) {
9393
m.addSubtree(Paths.get(""), file);

0 commit comments

Comments
 (0)