From abe3f27fdb6d1cd90189f423ffb4ec7e485d1b72 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 17 Dec 2020 21:48:30 -0800 Subject: allow scroll GET updates --- src/lib.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/lib.rs b/src/lib.rs index c420e96..4431daa 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -106,7 +106,9 @@ pub async fn filter_request( (&Method::HEAD, ["_search", "scroll"]) | (&Method::OPTIONS, ["_search", "scroll"]) => { Body::empty() } - (&Method::POST, ["_search", "scroll"]) | (&Method::DELETE, ["_search", "scroll"]) => { + (&Method::GET, ["_search", "scroll"]) + | (&Method::POST, ["_search", "scroll"]) + | (&Method::DELETE, ["_search", "scroll"]) => { let whole_body = hyper::body::to_bytes(body) .await .map_err(|e| ProxyError::HttpError(e.to_string()))?; -- cgit v1.2.3