From b92c7b38013a94f8310900e8e04b8b201d69de43 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Tue, 25 Aug 2020 12:22:17 -0700 Subject: progress: query param parsing, small renamings --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main.rs') 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, config: ProxyConfig) -> Result, 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..."); -- cgit v1.2.3