mirror of
https://github.com/ViViDboarder/bitwarden_rs.git
synced 2024-12-23 03:57:44 +00:00
Use X-Forwarded-Host if available
This commit is contained in:
parent
be4e6c6f0c
commit
8ff50481e5
@ -128,7 +128,9 @@ impl<'a, 'r> FromRequest<'a, 'r> for Headers {
|
||||
"http"
|
||||
};
|
||||
|
||||
let host = if let Some(host) = headers.get_one("Host") {
|
||||
let host = if let Some(host) = headers.get_one("X-Forwarded-Host") {
|
||||
host
|
||||
} else if let Some(host) = headers.get_one("Host") {
|
||||
host
|
||||
} else {
|
||||
""
|
||||
|
Loading…
Reference in New Issue
Block a user