From 03b6c1b8817cc8224a12eb7f938cdf53e5b1881d Mon Sep 17 00:00:00 2001 From: Rutger Broekhoff Date: Wed, 24 Jan 2024 20:38:34 +0100 Subject: What about making use of the download limiter? --- server/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/src') diff --git a/server/src/main.rs b/server/src/main.rs index 2df42dd..d96ac17 100644 --- a/server/src/main.rs +++ b/server/src/main.rs @@ -642,7 +642,7 @@ async fn handle_download_object( } if let Some(content_length) = result.content_length() { - if content_length < 0 { + if content_length > 0 { match state .dl_limiter .lock() -- cgit v1.2.3