Open
Description
Hello,
with the following code, I would get a 405 error while I expect a 404:
fn main() {
let routes = warp::post2().map(warp::reply).or(warp::get2().and(warp::path("test").and_then(send_test)));
warp::serve(routes).run(([127, 0, 0, 1], 3000));
}
fn send_test() -> Result<String, warp::Rejection> {
Err(warp::reject::not_found())
}
Is there something I am doing wrong?