mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-21 18:37:45 +08:00
An IPFS implementation in Go
Currently any clients created through `NewApiWithClient` will make a HTTP request to the api, even if the multiaddress specifies TLS or (the deprecated multiaddr option) https. This commit addresses this by having NewApiWithClient iterate the available protocols for the multiaddress, specifying the URL proto as https if it finds TLS or HTTPS is specified. The default continues to be http for those multiaddresses that do not specify these options. Should resolve #176 This commit was moved from ipfs/go-ipfs-http-client@7e1de1f7cc |
||
|---|---|---|
| client/httpapi | ||