diff --git a/src/auth.rs b/src/auth.rs index 5e31524e..03f14cb8 100644 --- 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 {