geforkt von mirrored/vaultwarden
Use X-Forwarded-Host if available
Dieser Commit ist enthalten in:
Ursprung
be4e6c6f0c
Commit
8ff50481e5
1 geänderte Dateien mit 3 neuen und 1 gelöschten Zeilen
|
@ -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 {
|
||||||
""
|
""
|
||||||
|
|
Laden …
In neuem Issue referenzieren