Browse Source

refactor(s3api_object_handlers): `deleteMultipleObjectsLimmit` -> `de… (#3695)

refactor(s3api_object_handlers): `deleteMultipleObjectsLimmit` -> `deleteMultipleObjectsLimit`

Signed-off-by: Ryan Russell <git@ryanrussell.org>

Signed-off-by: Ryan Russell <git@ryanrussell.org>
pull/3624/merge
Ryan Russell 2 years ago
committed by GitHub
parent
commit
ad3a3c8782
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      weed/s3api/s3api_object_handlers.go

4
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
}

Loading…
Cancel
Save