geforkt von mirrored/vaultwarden
Revert "fix trailing slash not being removed from domain"
This reverts commit 679bc7a59b
.
Dieser Commit ist enthalten in:
Ursprung
679bc7a59b
Commit
a2aa7c9bc2
1 geänderte Dateien mit 1 neuen und 2 gelöschten Zeilen
|
@ -283,8 +283,7 @@ impl<'r> FromRequest<'r> for Host {
|
||||||
|
|
||||||
// Get host
|
// Get host
|
||||||
let host = if CONFIG.domain_set() {
|
let host = if CONFIG.domain_set() {
|
||||||
// Remove trailing slash if it exists since we're getting a host
|
CONFIG.domain()
|
||||||
CONFIG.domain().trim_end_matches('/').to_string()
|
|
||||||
} else if let Some(referer) = headers.get_one("Referer") {
|
} else if let Some(referer) = headers.get_one("Referer") {
|
||||||
referer.to_string()
|
referer.to_string()
|
||||||
} else {
|
} else {
|
||||||
|
|
Laden …
In neuem Issue referenzieren