From ad3a3c878236d2b84ddb27d3b77dae8f2be771f1 Mon Sep 17 00:00:00 2001 From: Ryan Russell Date: Thu, 15 Sep 2022 05:12:48 -0500 Subject: [PATCH] =?UTF-8?q?refactor(s3api=5Fobject=5Fhandlers):=20`deleteM?= =?UTF-8?q?ultipleObjectsLimmit`=20->=20`de=E2=80=A6=20(#3695)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit refactor(s3api_object_handlers): `deleteMultipleObjectsLimmit` -> `deleteMultipleObjectsLimit` Signed-off-by: Ryan Russell Signed-off-by: Ryan Russell --- weed/s3api/s3api_object_handlers.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/weed/s3api/s3api_object_handlers.go b/weed/s3api/s3api_object_handlers.go index 7a423d524..2fc0111a4 100644 --- a/weed/s3api/s3api_object_handlers.go +++ b/weed/s3api/s3api_object_handlers.go @@ -28,7 +28,7 @@ import ( ) const ( - deleteMultipleObjectsLimmit = 1000 + deleteMultipleObjectsLimit = 1000 ) func mimeDetect(r *http.Request, dataReader io.Reader) io.ReadCloser { @@ -250,7 +250,7 @@ func (s3a *S3ApiServer) DeleteMultipleObjectsHandler(w http.ResponseWriter, r *h return } - if len(deleteObjects.Objects) > deleteMultipleObjectsLimmit { + if len(deleteObjects.Objects) > deleteMultipleObjectsLimit { s3err.WriteErrorResponse(w, r, s3err.ErrInvalidMaxDeleteObjects) return }