From 36dae04671260ea713727adfec75402dfcd4af99 Mon Sep 17 00:00:00 2001 From: Anis Elleuch Date: Thu, 31 Jan 2019 04:33:31 +0100 Subject: [PATCH] CopyObjectPart: remove duplicated etag decryption (#7174) --- cmd/object-handlers.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/cmd/object-handlers.go b/cmd/object-handlers.go index baf53b8f0..c389a47ef 100644 --- a/cmd/object-handlers.go +++ b/cmd/object-handlers.go @@ -1727,9 +1727,6 @@ func (api objectAPIHandlers) CopyObjectPartHandler(w http.ResponseWriter, r *htt writeErrorResponse(w, toAPIErrorCode(ctx, err), r.URL, guessIsBrowserReq(r)) return } - if isEncrypted { - partInfo.ETag = tryDecryptETag(objectEncryptionKey, partInfo.ETag, crypto.SSEC.IsRequested(r.Header)) - } if isEncrypted { partInfo.ETag = tryDecryptETag(objectEncryptionKey, partInfo.ETag, crypto.SSEC.IsRequested(r.Header))