Skip to content

Commit 2d1ffbc

Browse files
committed
Add magic header to multipart that fixes go-ipfs errors.
1 parent d154cec commit 2d1ffbc

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ public Multipart(String requestURL, String charset) {
2323
httpConn.setUseCaches(false);
2424
httpConn.setDoOutput(true);
2525
httpConn.setDoInput(true);
26+
httpConn.setRequestProperty("Expect", "100-continue");
2627
httpConn.setRequestProperty("Content-Type", "multipart/form-data; boundary=" + boundary);
2728
httpConn.setRequestProperty("User-Agent", "Java IPFS CLient");
2829
out = httpConn.getOutputStream();

src/test/java/io/ipfs/api/SimpleAddTest.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ public void testSingleOnlyHash() throws Exception {
6868
}
6969

7070
@Test
71-
@Ignore("[#95] NPE in simple recursive ipfs add scenario")
7271
public void testRecursive() throws Exception {
7372

7473
Path path = Paths.get("src/test/resources/html");
@@ -81,7 +80,6 @@ public void testRecursive() throws Exception {
8180
}
8281

8382
@Test
84-
@Ignore("[#95] NPE in simple recursive ipfs add scenario")
8583
public void testRecursiveOnlyHash() throws Exception {
8684

8785
Path path = Paths.get("src/test/resources/html");

0 commit comments

Comments
 (0)