We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e53b7c commit c602765Copy full SHA for c602765
src/main/java/org/ipfs/api/IPFS.java
@@ -170,7 +170,7 @@ public List<MerkleNode> put(List<byte[]> data) throws IOException {
170
}
171
172
public List<MerkleNode> put(String encoding, List<byte[]> data) throws IOException {
173
- if (!"json".equals(encoding) && "protobuf".equals(encoding))
+ if (!"json".equals(encoding) && !"protobuf".equals(encoding))
174
throw new IllegalArgumentException("Encoding must be json or protobuf");
175
Multipart m = new Multipart("http://" + host + ":" + port + version+"object/put?stream-channels=true&encoding="+encoding, "UTF-8");
176
for (byte[] f : data)
0 commit comments