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

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

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

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

wilzbach opened this issue Jul 20, 2017 · 1 comment

Comments

@wilzbach
Copy link
Member

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
Copy link
Member

Fixed by #1867.

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

2 participants