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 44128ca commit a1e3f5dCopy full SHA for a1e3f5d
src/main/java/io/ipfs/api/IPFS.java
@@ -585,12 +585,12 @@ public void replace(NamedStreamable file) throws IOException {
585
String res = m.finish();
586
}
587
588
- public String get(String key) throws IOException {
+ public Object get(String key) throws IOException {
589
Map m = (Map)retrieveAndParse("config?arg="+key);
590
- return (String)m.get("Value");
+ return m.get("Value");
591
592
593
- public Map set(String key, String value) throws IOException {
+ public Map set(String key, Object value) throws IOException {
594
return retrieveMap("config?arg=" + key + "&arg=" + value);
595
596
0 commit comments