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

router.match doesn't work with delegates anymore #1866

Closed
wilzbach opened this Issue Jul 20, 2017 · 1 comment

Comments

Projects
None yet
2 participants
@wilzbach
Contributor

wilzbach commented Jul 20, 2017

Worked fine in 0.7.31, but broke in v0.8.0:

#!/usr/bin/env dub
/+ dub.sdl:
name "hello_vibed"
dependency "vibe-d" version="~>0.8.0"
+/
void main()
{
    import vibe.d;
    auto settings = new HTTPServerSettings;
    settings.port = 8080;
    auto router = new URLRouter;
    router.match(HTTPMethod.HEAD, "aa", (req, res) {
        res.writeBody("Hello, World: " ~ req.path);
    });
    listenHTTP(settings, router);
    runApplication();
}

Will prepare a PR soon.

@s-ludwig

This comment has been minimized.

Show comment
Hide comment
@s-ludwig

s-ludwig Jul 20, 2017

Member

Fixed by #1867.

Member

s-ludwig commented Jul 20, 2017

Fixed by #1867.

@s-ludwig s-ludwig closed this Jul 20, 2017

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