Browse Source
fix trailing slash not being removed from domain
pull/3228/head
BlockListed
2 years ago
No known key found for this signature in database
GPG Key ID: 2D204777C477B588
1 changed files with
2 additions and
1 deletions
-
src/auth.rs
|
@ -283,7 +283,8 @@ impl<'r> FromRequest<'r> for Host { |
|
|
|
|
|
|
|
|
// Get host
|
|
|
// Get host
|
|
|
let host = if CONFIG.domain_set() { |
|
|
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") { |
|
|
} else if let Some(referer) = headers.get_one("Referer") { |
|
|
referer.to_string() |
|
|
referer.to_string() |
|
|
} else { |
|
|
} else { |
|
|