aboutsummaryrefslogtreecommitdiff
path: root/src/api
diff options
context:
space:
mode:
authorAlex <alex@adnab.me>2023-11-22 10:33:31 +0000
committerAlex <alex@adnab.me>2023-11-22 10:33:31 +0000
commit36bd21a148089fac4a04e1559f2456435e66de87 (patch)
treedb2c15cdbe7c1e3241c4815caa957392d802cd12 /src/api
parentf4d3905d157869d98f9855cba77b4ba452012703 (diff)
parent92fd899fb651a43374d1839371176c71c7d0beb6 (diff)
downloadgarage-36bd21a148089fac4a04e1559f2456435e66de87.tar.gz
garage-36bd21a148089fac4a04e1559f2456435e66de87.zip
Merge pull request 'Allow 0 as a part number marker' (#670) from asonix/garage:main into main
Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/670
Diffstat (limited to 'src/api')
-rw-r--r--src/api/s3/api_server.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/s3/api_server.rs b/src/api/s3/api_server.rs
index d675ab61..887839dd 100644
--- a/src/api/s3/api_server.rs
+++ b/src/api/s3/api_server.rs
@@ -344,7 +344,7 @@ impl ApiHandler for S3ApiServer {
bucket_id,
key,
upload_id,
- part_number_marker: part_number_marker.map(|p| p.clamp(1, 10000)),
+ part_number_marker: part_number_marker.map(|p| p.min(10000)),
max_parts: max_parts.unwrap_or(1000).clamp(1, 1000),
},
)