diff options
author | Bryan Newbold <bnewbold@archive.org> | 2020-12-17 21:48:30 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2020-12-17 21:49:26 -0800 |
commit | abe3f27fdb6d1cd90189f423ffb4ec7e485d1b72 (patch) | |
tree | b08bcc1f70ff056b5ef89a7e47cc238c16b6a8fd /src | |
parent | 034cacce16581c896e0ead523d8c50bf93e532f3 (diff) | |
download | es-public-proxy-abe3f27fdb6d1cd90189f423ffb4ec7e485d1b72.tar.gz es-public-proxy-abe3f27fdb6d1cd90189f423ffb4ec7e485d1b72.zip |
allow scroll GET updates
Diffstat (limited to 'src')
-rw-r--r-- | src/lib.rs | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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()))?; |