Skip to content

Commit a1e3f5d

Browse files
committed
Fix config.get for non string values
1 parent 44128ca commit a1e3f5d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -585,12 +585,12 @@ public void replace(NamedStreamable file) throws IOException {
585585
String res = m.finish();
586586
}
587587

588-
public String get(String key) throws IOException {
588+
public Object get(String key) throws IOException {
589589
Map m = (Map)retrieveAndParse("config?arg="+key);
590-
return (String)m.get("Value");
590+
return m.get("Value");
591591
}
592592

593-
public Map set(String key, String value) throws IOException {
593+
public Map set(String key, Object value) throws IOException {
594594
return retrieveMap("config?arg=" + key + "&arg=" + value);
595595
}
596596
}

0 commit comments

Comments
 (0)