Skip to content
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

Support for IPv6 addresses #18

Closed
dapaulid opened this issue Sep 4, 2015 · 0 comments
Closed

Support for IPv6 addresses #18

dapaulid opened this issue Sep 4, 2015 · 0 comments

Comments

@dapaulid
Copy link

dapaulid commented Sep 4, 2015

Following code:

http.request('http://[::1]:80/foo',function(res) {
    res.on('end', function() {
        console.log('request status: ' + res.statusCode);
    });
}).on('error', function(e) {
       console.log(e.message);
}).end();

will result in this error message:
Failed to execute 'fetch' on 'Window': Failed to parse URL from http://::1:80/foo

The problem seems to be that the implementation is not aware of literal IPv6 addresses in the URL (see https://www.ietf.org/rfc/rfc2732.txt).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant