mirror of
https://github.com/pgsty/minio.git
synced 2026-07-21 05:00:22 +03:00
Azure gateway complete multipart ETag (#7500)
Compute md5 for azure multipart upload that matches s3 behavior Reuse complete multipart md5 function in azure gateway
This commit is contained in:
committed by
kannappanr
parent
3efcd6fa46
commit
816459d10f
@@ -17,6 +17,7 @@
|
||||
package cmd
|
||||
|
||||
import (
|
||||
"context"
|
||||
"net/http"
|
||||
"os"
|
||||
"strings"
|
||||
@@ -349,6 +350,11 @@ func ErrorRespToObjectError(err error, params ...string) error {
|
||||
return err
|
||||
}
|
||||
|
||||
// ComputeCompleteMultipartMD5 calculates MD5 ETag for complete multipart responses
|
||||
func ComputeCompleteMultipartMD5(parts []CompletePart) (string, error) {
|
||||
return getCompleteMultipartMD5(context.Background(), parts)
|
||||
}
|
||||
|
||||
// parse gateway sse env variable
|
||||
func parseGatewaySSE(s string) (gatewaySSE, error) {
|
||||
l := strings.Split(s, ";")
|
||||
|
||||
Reference in New Issue
Block a user