From 2616cf399e0c4379e53d752fca797063cb5e7908 Mon Sep 17 00:00:00 2001 From: Rob Landers Date: Sun, 3 Apr 2022 14:28:26 +0200 Subject: [PATCH] remove limitation --- src/api/s3_copy.rs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/api/s3_copy.rs b/src/api/s3_copy.rs index 2d050ff6..cbab9e0e 100644 --- a/src/api/s3_copy.rs +++ b/src/api/s3_copy.rs @@ -300,13 +300,6 @@ pub async fn handle_upload_part_copy( current_offset = block_end; } - if size_to_copy < 1024 * 1024 { - return Err(Error::BadRequest(format!( - "Not enough data to copy: {} bytes (minimum: 1MB)", - size_to_copy - ))); - } - // Now, actually copy the blocks let mut md5hasher = Md5::new();