diff options
author | Bryan Newbold <bnewbold@archive.org> | 2020-08-25 12:22:17 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2020-08-25 12:22:17 -0700 |
commit | b92c7b38013a94f8310900e8e04b8b201d69de43 (patch) | |
tree | 5428b38e807df2626887390b230a8bfcdf664fdd /src/main.rs | |
parent | 01e5348c1c0ca9fbf2826e4e35d71a743ba28741 (diff) | |
download | es-public-proxy-b92c7b38013a94f8310900e8e04b8b201d69de43.tar.gz es-public-proxy-b92c7b38013a94f8310900e8e04b8b201d69de43.zip |
progress: query param parsing, small renamings
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs index 632c159..5e6c20c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -5,11 +5,11 @@ use std::net::SocketAddr; use std::env; use toml; -use es_public_proxy::{ProxyConfig, ProxyError, parse_request}; +use es_public_proxy::{ProxyConfig, filter_request}; async fn upstream_req(req: Request<Body>, config: ProxyConfig) -> Result<Response<Body>, hyper::Error> { println!("hit: {}", req.uri()); - let parsed = parse_request(req, &config).await; + let parsed = filter_request(req, &config).await; let resp = match parsed { Ok(upstream_req) => { println!("sending request..."); |