ipfs-shipyard / java-ipfs-http-client

A Java implementation of the HTTP IPFS API
MIT License
538 stars 243 forks source link

Method retrieveStream of IPFS class has hardcoded "http" #144

Closed josdam closed 1 year ago

josdam commented 4 years ago

Class: IPFS.java

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

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

Otherwise retrieve from HTTPS is not possible

gjeanmart commented 4 years ago

Fixed in PR #149