Skip to content

Commit

Permalink
Merge pull request #149 from gjeanmart/issue/144
Browse files Browse the repository at this point in the history
Fix issue #144: Method retrieveStream of IPFS class has hardcoded "http"
  • Loading branch information
ianopolous authored Oct 29, 2019
2 parents 4bbf10a + bca9d3e commit b5f6b90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/io/ipfs/api/IPFS.java
Original file line number Diff line number Diff line change
Expand Up @@ -739,7 +739,7 @@ private List<Object> getAndParseStream(String path) throws IOException {
}

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

Expand Down

0 comments on commit b5f6b90

Please sign in to comment.