mirror of
https://github.com/versity/versitygw.git
synced 2026-09-04 15:17:29 +00:00
Fixes #1545 `Content-Md5` should be validated/calculated only for the actions containing request body, which are: * All bucket `PUT` operations(PutBucketTagging, PutBucketVersioning ...) * All object `PUT` operations(PutObject, UploadPart ...) except for object copy ones(CopyObject, UploadPartCopy) * Object `POST` operations(CompleteMultipartUpload, RestoreObject ...), but not for `CreateMultipartUpload`, as it doesn't have request body. * Bucket `POST` operation(DeleteObjects). The PR removes the `Content-Md5` check from bucket/object GET/HEAD operations and from `PUT`/`POST` operations not expecting request body.