1
0
Fork 0

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 {
"" ""