From 458220df47916023efd4c97c7687dd57df6dfcb5 Mon Sep 17 00:00:00 2001 From: neri Date: Fri, 24 Jul 2020 19:56:36 +0200 Subject: [PATCH] more intuitive max file size --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 71027cb..2b9e70a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -217,7 +217,7 @@ async fn main() -> std::io::Result<()> { let upload_max_bytes: usize = env::var("UPLOAD_MAX_BYTES") .ok() .and_then(|variable| variable.parse().ok()) - .unwrap_or(8_388_608); + .unwrap_or(8 * 1024 * 1024); let bind_address = env::var("BIND_ADDRESS").unwrap_or_else(|_| "0.0.0.0:8000".to_owned()); HttpServer::new({