New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
faraday does not support ipv6 in URL #589
Comments
This is an issue of I don't think there's something that should change in Faraday for this issue. |
I'm not sure if this is
But if a URL with square brackets is parsed by
Maybe our |
I'm willing to investigate this a bit further and submit a PR if necessary. |
Fixes lostisland#589. The problem comes from Net::HTTP not being able to understand brackets when passed a literal IPv6 address: Net::HTTP.start("[::1]") #=> :( Net::HTTP.start("::1") #=> :) URI provides two different methods to extract the network host from the URI: #host, and #hostname. The only difference being that `#hostname` will unwrap brackets for IPv6 addresses, which is what we want here.
Is this issue still opened @iMacTia ? |
It's complicated 😅 |
Issue:
faraday does not support ipv6 in URL.
For example:
http://[::1]/
http://[::1]:80/
Steps to reproduce:
Finally it'll throw the exception below.
The text was updated successfully, but these errors were encountered: