summaryrefslogtreecommitdiff
path: root/test_util/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'test_util/src/lib.rs')
-rw-r--r--test_util/src/lib.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/test_util/src/lib.rs b/test_util/src/lib.rs
index 12d5675d2..dcf12d860 100644
--- a/test_util/src/lib.rs
+++ b/test_util/src/lib.rs
@@ -728,10 +728,7 @@ async fn main_server(
req: Request<Body>,
) -> Result<Response<Body>, hyper::http::Error> {
return match (req.method(), req.uri().path()) {
- (
- &hyper::Method::POST | &hyper::Method::PATCH | &hyper::Method::PUT,
- "/echo_server",
- ) => {
+ (_, "/echo_server") => {
let (parts, body) = req.into_parts();
let mut response = Response::new(body);