1
0
Fork 0
mirror of https://git.42l.fr/neil/sncf.git synced 2024-05-06 07:53:11 +02:00

removing superfluous authorization header removal

This commit is contained in:
neil 2020-08-22 20:14:20 +02:00
parent 2b6fb1baa1
commit 44286ac8c5

View file

@ -59,7 +59,7 @@ pub async fn forward(
for (header_name, header_value) in res for (header_name, header_value) in res
.headers() .headers()
.iter() .iter()
.filter(|(h, _)| *h != "connection" && *h != "content-encoding" && *h != "authorization") .filter(|(h, _)| *h != "connection" && *h != "content-encoding")
{ {
client_resp.header(header_name.clone(), header_value.clone()); client_resp.header(header_name.clone(), header_value.clone());
} }