CopyObjectPart: remove duplicated etag decryption (#7174)

master
Anis Elleuch 6 years ago committed by Harshavardhana
parent 9dc9f03c02
commit 36dae04671
  1. 3
      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))

Loading…
Cancel
Save