darpi-rs / darpi

A rust web framework with safety and speed in mind.
https://darpi-rs.github.io/book/
33 stars 1 forks source link

`gonzales` doesn't match uppercase letter with `ascii_case_insensitive(false)` #18

Closed malaire closed 3 years ago

malaire commented 3 years ago

This test fails with gonzales = "0.0.2-beta"

use gonzales::RouterBuilder;

fn main() {
    let router = RouterBuilder::new()
        .ascii_case_insensitive(false)
        .build(vec!["/Hello"]);
    let m = router.route("/Hello");
    assert!(m.is_some());
}
petar-dambovaliev commented 3 years ago

This test fails with gonzales = "0.0.2-beta"

use gonzales::RouterBuilder;

fn main() {
    let router = RouterBuilder::new()
        .ascii_case_insensitive(false)
        .build(vec!["/Hello"]);
    let m = router.route("/Hello");
    assert!(m.is_some());
}

Thanks, this was fixed in a separate branch and it is merged.

stappersg commented 3 years ago

And who will close this issue?