Skip to content

Commit 592ebef

Browse files
authored
add token
1 parent f46119f commit 592ebef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/io/udfs/api/UDFS.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ public List<MerkleNode> add(NamedStreamable file, boolean wrap, boolean hashOnly
8686
return add(Collections.singletonList(file), wrap, hashOnly);
8787
}
8888

89-
public List<MerkleNode> add(List<NamedStreamable> files, boolean wrap, boolean hashOnly) throws IOException {
90-
Multipart m = new Multipart(protocol + "://" + host + ":" + port + version + "add?stream-channels=true&w="+wrap + "&n="+hashOnly, "UTF-8");
89+
public List<MerkleNode> add(List<NamedStreamable> files, boolean wrap, boolean hashOnly,String token) throws IOException {
90+
Multipart m = new Multipart(protocol + "://" + host + ":" + port + version + "add?token="+token+"&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)