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