Align to code to match docs

This commit is contained in:
Harrison Burt 2022-03-30 23:26:47 +01:00
parent 3dfa9fbcfd
commit 20d2e6a3f8
1 changed files with 1 additions and 1 deletions

View File

@ -152,7 +152,7 @@ impl LustApi {
let local_limit = bucket
.cfg()
.max_upload_size
.map(|v| v as usize)
.map(|v| (v * 1024) as usize)
.unwrap_or(u32::MAX as usize);
if *content_length > local_limit {