Skip to content

Commit

Permalink
Don't override X-Forwarded-Proto and X-Forwarded-Port
Browse files Browse the repository at this point in the history
Signed-off-by: Eloi DEMOLIS <eloi.demolis@clever-cloud.com>
  • Loading branch information
Wonshtrum committed Oct 26, 2023
1 parent 55580c6 commit 72e9d44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/src/protocol/kawa_h1/editor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,10 @@ impl HttpContext {
}
} else if compare_no_case(key, b"X-Forwarded-Proto") {
has_x_proto = true;
header.val = kawa::Store::Static(proto.as_bytes());
// header.val = kawa::Store::Static(proto.as_bytes());
} else if compare_no_case(key, b"X-Forwarded-Port") {
has_x_port = true;
header.val = kawa::Store::from_string(public_port.to_string());
// header.val = kawa::Store::from_string(public_port.to_string());
} else if compare_no_case(key, b"X-Forwarded-For") {
x_for = Some(header);
} else if compare_no_case(key, b"Forwarded") {
Expand Down

0 comments on commit 72e9d44

Please sign in to comment.