fix: regression in CopyObject not preserving ETag in --compat (#9322)

issue found after `git bisect` to commit db41953618
master
Harshavardhana 5 years ago committed by GitHub
parent c434dff0a4
commit 29e0727b58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      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)
}
}
}

Loading…
Cancel
Save