Skip to content

Commit 33fe68a

Browse files
author
gjeanmart
committed
Fix issue #144: Method retrieveStream of IPFS class has hardcoded "http"
1 parent 5a8bcbc commit 33fe68a

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
@@ -724,7 +724,7 @@ private List<Object> getAndParseStream(String path) throws IOException {
724724
}
725725

726726
private InputStream retrieveStream(String path) throws IOException {
727-
URL target = new URL("http", host, port, version + path);
727+
URL target = new URL(protocol, host, port, version + path);
728728
return IPFS.getStream(target);
729729
}
730730

0 commit comments

Comments
 (0)