summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2020-12-17 21:48:30 -0800
committerBryan Newbold <bnewbold@archive.org>2020-12-17 21:49:26 -0800
commitabe3f27fdb6d1cd90189f423ffb4ec7e485d1b72 (patch)
treeb08bcc1f70ff056b5ef89a7e47cc238c16b6a8fd /src
parent034cacce16581c896e0ead523d8c50bf93e532f3 (diff)
downloades-public-proxy-abe3f27fdb6d1cd90189f423ffb4ec7e485d1b72.tar.gz
es-public-proxy-abe3f27fdb6d1cd90189f423ffb4ec7e485d1b72.zip
allow scroll GET updates
Diffstat (limited to 'src')
-rw-r--r--src/lib.rs4
1 files changed, 3 insertions, 1 deletions
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()))?;