Commit Graph

24 Commits

Author SHA1 Message Date
Ross Jones
7d8262307c fix: use https URI when multiaddress specifies tls (#177)
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
2023-05-15 18:18:51 +02:00
Jorropo
8bebfc00b7 chore: migrate from go-libipfs to boxo
This commit was moved from ipfs/go-ipfs-http-client@ae996cbe5a
2023-04-18 15:31:48 +02:00
web3-bot
0fff1d5d8e stop using the deprecated io/ioutil package
This commit was moved from ipfs/go-ipfs-http-client@026ba730a1
2022-09-23 07:43:33 +00:00
galargh
b52c80ca4d skip TestHttpApi on Windows
This commit was moved from ipfs/go-ipfs-http-client@a41c7956c0
2022-01-14 16:16:26 +01:00
Marten Seemann
ea2a35686d fix staticcheck
This commit was moved from ipfs/go-ipfs-http-client@4461a0bb95
2021-05-15 18:21:24 -07:00
Alex
daf1b72809 api: fix failing test
This commit was moved from ipfs/go-ipfs-http-client@ea507216d8
2019-05-01 17:19:35 -07:00
Alex
fd5010bd2a api: cleanup header and NewURLApiWithClient test
This commit was moved from ipfs/go-ipfs-http-client@b8b55cb89a
2019-05-01 16:13:47 -07:00
postables
37ea6eb164 Merge branch 'master' into client/auth
This commit was moved from ipfs/go-ipfs-http-client@e98ef9ffe1
2019-05-01 14:43:17 -07:00
Alex
89600e62ce api: add wip api test
This commit was moved from ipfs/go-ipfs-http-client@2b48dd36ad
2019-05-01 13:41:37 -07:00
Łukasz Magiera
3b67615201 gomod: update iface with path refactor
This commit was moved from ipfs/go-ipfs-http-client@0bd65a67ee
2019-04-26 20:30:55 +02:00
Alex
3b02ea4646 api: add authenticated transport, and direct connection
This commit was moved from ipfs/go-ipfs-http-client@d04afa02b0
2019-04-09 19:53:07 -07:00
Łukasz Magiera
47b820150b test: don't panic on errors in async node construction
This commit was moved from ipfs/go-ipfs-http-client@95ce0f3949
2019-02-21 14:50:10 +01:00
Łukasz Magiera
27aa13fe44 return errors from constructor methods
This commit was moved from ipfs/go-ipfs-http-client@dbee4e27aa
2019-02-19 21:53:17 +01:00
Łukasz Magiera
9a6ee6f5e1 Improve test node spawning
This commit was moved from ipfs/go-ipfs-http-client@6bb2a287a6
2019-02-14 17:30:04 +01:00
Łukasz Magiera
abc30e384f Register iptb plugin once
This commit was moved from ipfs/go-ipfs-http-client@d6c8cbd5e6
2019-02-12 12:48:04 +01:00
Łukasz Magiera
ef5bf40df1 Update imports to use extracted interface
This commit was moved from ipfs/go-ipfs-http-client@fad467bc43
2019-02-12 12:05:24 +01:00
Łukasz Magiera
af2edd12eb tests: enable filestore
This commit was moved from ipfs/go-ipfs-http-client@904e8eeeb1
2019-02-04 19:43:00 +01:00
Łukasz Magiera
c2e0872f6d Implement PubSub Api
This commit was moved from ipfs/go-ipfs-http-client@7abddda1d3
2019-01-15 18:19:50 +01:00
Łukasz Magiera
c213e26542 Unixfs.Add progress events
This commit was moved from ipfs/go-ipfs-http-client@2f3a77b686
2019-01-09 21:55:45 +01:00
Łukasz Magiera
af197cb6d9 api.WithOption
This commit was moved from ipfs/go-ipfs-http-client@634b00bf1a
2019-01-08 14:46:52 +01:00
Łukasz Magiera
a6636aac59 Imprement partian Pin API
This commit was moved from ipfs/go-ipfs-http-client@dbf90eac67
2019-01-08 03:18:21 +01:00
Łukasz Magiera
c236393733 Connect test swarms, don't compress api calls
This commit was moved from ipfs/go-ipfs-http-client@c6472d9b82
2019-01-08 02:08:18 +01:00
Łukasz Magiera
e8da6e2cf9 Block API
This commit was moved from ipfs/go-ipfs-http-client@d0c98b870e
2019-01-07 23:44:43 +01:00
Łukasz Magiera
fe4c9fd803 Skeleton for tests
This commit was moved from ipfs/go-ipfs-http-client@dfbe0026ad
2018-12-30 04:24:09 +01:00