1
0
Fork 1
Spiegel von https://github.com/dani-garcia/vaultwarden.git synchronisiert 2024-11-26 05:50:29 +01:00

Use X-Forwarded-Host if available

Dieser Commit ist enthalten in:
Daniel García 2018-07-13 00:33:28 +02:00
Ursprung be4e6c6f0c
Commit 8ff50481e5

Datei anzeigen

@ -128,7 +128,9 @@ impl<'a, 'r> FromRequest<'a, 'r> for Headers {
"http" "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 host
} else { } else {
"" ""