more intuitive max file size

This commit is contained in:
neri 2020-07-24 19:56:36 +02:00
parent 86b2b2bac8
commit 458220df47
1 changed files with 1 additions and 1 deletions

View File

@ -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({