1
0
mirror of https://github.com/actix/examples synced 2025-06-29 10:14:58 +02:00

update actix-web version

This commit is contained in:
Nikolay Kim
2019-04-12 13:39:14 -07:00
parent 173d65f285
commit 8fb2bf6869
2 changed files with 2 additions and 4 deletions

View File

@ -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") {