diff --git a/src/controllers/helpers/pagination.rs b/src/controllers/helpers/pagination.rs index aa00409854..0326e98c56 100644 --- a/src/controllers/helpers/pagination.rs +++ b/src/controllers/helpers/pagination.rs @@ -317,9 +317,9 @@ impl RawSeekPayload { /// /// A request can be blocked if either the User Agent is on the User Agent block list or if the client /// IP is on the CIDR block list. -fn is_useragent_or_ip_blocked(config: &Server, req: &T) -> bool { - let user_agent = req.headers().get_str_or_default(header::USER_AGENT); - let client_ip = req.extensions().get::(); +fn is_useragent_or_ip_blocked(config: &Server, req: &Parts) -> bool { + let user_agent = req.headers.get_str_or_default(header::USER_AGENT); + let client_ip = req.extensions.get::(); // check if user agent is blocked if config