commit a2aa7c9bc23145f0f5db72f8aeed826902c86fde
parent 679bc7a59b5daef65ef7916474577106a46fa0e9
Author: BlockListed <44610569+BlockListed@users.noreply.github.com>
Date: Tue, 7 Feb 2023 18:19:16 +0100
Revert "fix trailing slash not being removed from domain"
This reverts commit 679bc7a59b5daef65ef7916474577106a46fa0e9.
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/auth.rs b/src/auth.rs
@@ -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 {