mirror of
https://github.com/actix/examples
synced 2025-01-22 22:05:57 +01:00
update actix-web version
This commit is contained in:
parent
173d65f285
commit
8fb2bf6869
@ -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"
|
||||
|
@ -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") {
|
||||
|
Loading…
x
Reference in New Issue
Block a user