From 8fb2bf686978af189f45a61eb5efa7a189e2c443 Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Fri, 12 Apr 2019 13:39:14 -0700 Subject: [PATCH] update actix-web version --- http-full-proxy/Cargo.toml | 2 +- http-full-proxy/src/main.rs | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/http-full-proxy/Cargo.toml b/http-full-proxy/Cargo.toml index 593b1a5c..5e7f4f75 100644 --- a/http-full-proxy/Cargo.toml +++ b/http-full-proxy/Cargo.toml @@ -7,7 +7,7 @@ edition = "2018" [dependencies] actix-rt = "0.2" -actix-web = "1.0.0-alpha.4" +actix-web = "1.0.0-alpha.5" clap = "2.32.0" futures = "0.1.25" diff --git a/http-full-proxy/src/main.rs b/http-full-proxy/src/main.rs index d6d91e50..93eacbc8 100644 --- a/http-full-proxy/src/main.rs +++ b/http-full-proxy/src/main.rs @@ -15,9 +15,7 @@ fn forward( new_url.set_path(req.uri().path()); new_url.set_query(req.uri().query()); - let forwarded_req = client - .request_from(new_url.as_str(), req.head()) - .no_default_headers(); + let forwarded_req = client.request_from(new_url.as_str(), req.head()); // if let Some(addr) = req.peer_addr() { // match forwarded_req.headers_mut().entry("x-forwarded-for") {