mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2024-11-10 13:02:41 +01:00
Revert "fix trailing slash not being removed from domain"
This reverts commit 679bc7a59b
.
This commit is contained in:
parent
679bc7a59b
commit
a2aa7c9bc2
@ -283,8 +283,7 @@ impl<'r> FromRequest<'r> for Host {
|
||||
|
||||
// Get host
|
||||
let host = if CONFIG.domain_set() {
|
||||
// Remove trailing slash if it exists since we're getting a host
|
||||
CONFIG.domain().trim_end_matches('/').to_string()
|
||||
CONFIG.domain()
|
||||
} else if let Some(referer) = headers.get_one("Referer") {
|
||||
referer.to_string()
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user