multiformats/js-multiaddr

What is a valid HTTP multiaddr?

alanshaw opened this issue · 4 comments

According to https://multiformats.io/multiaddr/ I should be able to type something like /ip4/127.0.0.1/tcp/90/http/baz.jpg

...but this causes Error: no protocol with name: baz.jpg

See https://runkit.com/embed/q1wgjxqmnn38

I'm guessing this is because I have an address + path...

vmx commented

The README also mentions /ip4/127.0.0.1/tcp/90/http/baz.jpg so I expect it to be a valid address.

vmx commented

@diasdavid As you are the captain, can you please confirm?

@vmx the README was added on #14 and apparently I missed that baz.jpg was added, that shouldn't be there. Good catch!