Commit Graph

3 Commits

Author SHA1 Message Date
Marcin Rataj
adda9366c1 feat: assume HTTP when multiaddr ends with /tcp (#7)
This makes multiaddrs ending with `/tcp/8080` to default to HTTP unless
an explicit assumeHttp: false is passed.

We also skip default ports for HTTP and HTTPS in the URL.

Motivation:
https://github.com/ipfs/js-ipfs/pull/2358#issue-307463029

License: MIT
Signed-off-by: Marcin Rataj <lidel@lidel.org>
2019-08-21 11:09:35 +01:00
Alan Shaw
42d8704061
renames to multiaddr-to-uri 2018-03-21 10:09:39 +00:00
Alan Shaw
f159234297
initial commit 2018-03-20 14:39:26 +00:00