Commit Graph

6 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
Henrique Dias
ac2d98c49a fix: IPv6 rfc3986 compliancy
License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>
2019-01-13 10:12:30 +00:00
Alan Shaw
15cb33ac15
test: add additional test cases
License: MIT
Signed-off-by: Alan Shaw <alan@tableflip.io>
2018-07-25 13:27:40 +01:00
Alan Shaw
25b753a012
updates test name 2018-04-05 22:26:03 +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