v0.35.0
This commit is contained in:
1 parent
2c03fcf248
commit
d3b492874b
95 files changed
+1628
-743
No files matched your search
+3
-4
@@ -399,10 +399,9 @@ impl Compiled {
|
||||
};
|
||||
values.insert(
|
||||
"x-forwarded-port",
|
||||
if cached.is_some() && !(trusted_peer && self.trust_proto) {
|
||||
cached.expect("tested above").port_header.clone()
|
||||
} else {
|
||||
port.to_string().parse()?
|
||||
match (cached, trusted_peer && self.trust_proto) {
|
||||
(Some(cached), false) => cached.port_header.clone(),
|
||||
_ => port.to_string().parse()?,
|
||||
},
|
||||
);
|
||||
values.insert("x-forwarded-uri", original_target.parse()?);
|
||||
|
||||
Reference in new issue
Block a user