We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 858f5ef commit 6985639Copy full SHA for 6985639
src/middleware/block_traffic.rs
@@ -63,7 +63,7 @@ impl Handler for BlockTraffic {
63
Response::builder()
64
.status(StatusCode::FORBIDDEN)
65
.header(header::CONTENT_LENGTH, body.len())
66
- .body(Body::from_vec(body.into_bytes()) as Body)
+ .body(Body::from_vec(body.into_bytes()))
67
.map_err(box_error)
68
} else {
69
self.handler.as_ref().unwrap().call(req)
0 commit comments