We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4399bb commit 6879bd3Copy full SHA for 6879bd3
tests/nested.rs
@@ -1,4 +1,3 @@
1
-use http_types::headers::HeaderName;
2
use http_types::{Method, Request, Response, Url};
3
use test_utils::BoxFuture;
4
use tide::{Middleware, Next};
@@ -52,7 +51,7 @@ async fn nested_middleware() {
52
51
next: Next<'a, State>,
53
) -> BoxFuture<'a, tide::Result<tide::Response>> {
54
Box::pin(async move {
55
- let res = next.run(req).await?;
+ let mut res = next.run(req).await?;
56
res.insert_header("X-Tide-Test", "1");
57
Ok(res)
58
})
0 commit comments