From 11ea8a19d1481b0660e5a2765da6e67d3e8aa72c Mon Sep 17 00:00:00 2001 From: Sven-Hendrik Haase Date: Fri, 7 Mar 2025 11:00:48 +0100 Subject: Add asynchronous directory size counting This is enabled by default and without an option to toggle it off as it's asynchronous and shouldn't block the server thread. --- src/errors.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/errors.rs') diff --git a/src/errors.rs b/src/errors.rs index e35e8a8..3ac7da2 100644 --- a/src/errors.rs +++ b/src/errors.rs @@ -6,6 +6,7 @@ use actix_web::{ dev::{ResponseHead, ServiceRequest, ServiceResponse}, http::{StatusCode, header}, middleware::Next, + web, }; use thiserror::Error; @@ -159,7 +160,7 @@ fn map_error_page(req: &HttpRequest, head: &mut ResponseHead, body: BoxBody) -> _ => return BoxBody::new(error_msg), }; - let conf = req.app_data::().unwrap(); + let conf = req.app_data::>().unwrap(); let return_address = req .headers() .get(header::REFERER) -- cgit v1.2.3