diff --git a/cmd/object-handlers.go b/cmd/object-handlers.go index 89e4ac3f0..39145e85a 100644 --- a/cmd/object-handlers.go +++ b/cmd/object-handlers.go @@ -993,7 +993,9 @@ func (api objectAPIHandlers) CopyObjectHandler(w http.ResponseWriter, r *http.Re return } - pReader = NewPutObjReader(rawReader, srcInfo.Reader, &objEncKey) + if isTargetEncrypted { + pReader = NewPutObjReader(rawReader, srcInfo.Reader, &objEncKey) + } } }