From 6e0bf093c558358c463109637615fddc4020eeac Mon Sep 17 00:00:00 2001 From: Leo Kettmeir Date: Wed, 31 May 2023 20:06:21 +0200 Subject: refactor: further work on node http client (#19327) Closes https://github.com/denoland/deno/issues/18300 --- test_util/src/lib.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'test_util/src/lib.rs') 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, ) -> Result, 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); -- cgit v1.2.3