Skip to content

Commit b5f6b90

Browse files
authored
Merge pull request #149 from gjeanmart/issue/144
Fix issue #144: Method retrieveStream of IPFS class has hardcoded "http"
2 parents 4bbf10a + bca9d3e commit b5f6b90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -739,7 +739,7 @@ private List<Object> getAndParseStream(String path) throws IOException {
739739
}
740740

741741
private InputStream retrieveStream(String path) throws IOException {
742-
URL target = new URL("http", host, port, version + path);
742+
URL target = new URL(protocol, host, port, version + path);
743743
return IPFS.getStream(target, timeout);
744744
}
745745

0 commit comments

Comments
 (0)