diff options
author | Leo Kettmeir <crowlkats@toaxl.com> | 2023-05-31 20:06:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-31 20:06:21 +0200 |
commit | 6e0bf093c558358c463109637615fddc4020eeac (patch) | |
tree | 0e1e16751a1d2ffb6bf756095e02ec4180cdad71 /test_util/src | |
parent | 8e84dc0139055db8c84ad28723114d343982a8f7 (diff) |
refactor: further work on node http client (#19327)
Closes https://github.com/denoland/deno/issues/18300
Diffstat (limited to 'test_util/src')
-rw-r--r-- | test_util/src/lib.rs | 5 |
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); |