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

requestHTTP seems to have problems with IPv6 urls #2080

Closed
MartinNowak opened this issue Feb 22, 2018 · 0 comments
Closed

requestHTTP seems to have problems with IPv6 urls #2080

MartinNowak opened this issue Feb 22, 2018 · 0 comments

Comments

@MartinNowak
Copy link
Contributor

MartinNowak commented Feb 22, 2018

/++ dub.sdl:
dependency "vibe-d" version="~>0.8.3-alpha.4"
+/
import vibe.vibe;

void main()
{
    auto settings = new HTTPServerSettings;
    settings.port = 8080;
    settings.bindAddresses = ["::1"];
    listenHTTP(settings, (req, res) { res.writeBody("Hello, World!"); });

    runTask({
        auto resp = requestHTTP("http://[::1]:8080/");
        assert(resp.statusCode == 200, resp.toString);
    });
    runApplication();
}

Fails with HTTP/1.1 400 Bad Request.

MartinNowak added a commit to MartinNowak/vibe.d that referenced this issue Feb 22, 2018
- for obvious reasons
- dropped IPv6 binds as requestHTTP to IPv6 addresses doesn't work (vibe-d#2080)
  (also IPv6 support should be tested once, not everywhere)
MartinNowak added a commit to MartinNowak/vibe.d that referenced this issue Feb 22, 2018
- for obvious reasons
- dropped IPv6 binds as requestHTTP to IPv6 addresses doesn't work (vibe-d#2080)
  (also IPv6 support should be tested once, not everywhere)
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