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