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

Comments

Projects
None yet
1 participant
@MartinNowak
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

run tests on ephemeral ports
- 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

run tests on ephemeral ports
- 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)

s-ludwig added a commit that referenced this issue Feb 23, 2018

@wilzbach wilzbach closed this in bb13ea5 Feb 24, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment