Closed foca closed 4 years ago
@foca a good start is to apply the patch and make sure that existing tests still pass.
bundle install && bundle exec rake spec
From there, take a look at the client_spec and add a case or two for ipv6 case you're after.
@foca did you have any luck with the tests, etc? Would love to land this.
Resolved, closing.
Right now, creating a request with a literal IPv6 address will fail, because
URI#host
does not unwrap the brackets from the URI.I tried to come up with a patch. This works when tested in IRB but I'm not sure where to start with the tests as I'm not very familiar with EventMachine. Also not sure if I'm covering all the edge cases (I just searched for every call to URI#host and changed that for #hostname.)
https://github.com/lostisland/faraday/pull/621 has some more context on this.