When configuring redirect with tail(), it crashes from time to time to .expect("server URIs should always have path_and_query") with Warp 0.1.x. It could be because someone accesses it with CONNECT foo.bar. See #429 for discussion.
This can be worked around by not using tail() when doing redirect. E.g. use any and map it to static URI.
It looks like this occurs in 0.2.x as well.
Simple test case:
let filter = warp::path::tail();
let _tail = warp::test::request()
.path("localhost")
.filter(&filter)
.await
.unwrap();
Most helpful comment
It looks like this occurs in 0.2.x as well.
Simple test case: