mirror of
https://github.com/pgsty/minio.git
synced 2026-09-16 07:24:05 +03:00
Merge pull request #126 from pgsty/fix/issue-118-no-compressed-ssec
fix: exclude SSE-C objects from compression
This commit is contained in:
@@ -611,7 +611,10 @@ func excludeForCompression(header http.Header, object string, cfg compress.Confi
|
||||
return true
|
||||
}
|
||||
|
||||
if crypto.Requested(header) && !cfg.AllowEncrypted {
|
||||
// SSE-C replication sends raw ciphertext without compression metadata.
|
||||
// Exclude new SSE-C data from compression; other modes follow allow_encryption.
|
||||
if crypto.SSEC.IsRequested(header) ||
|
||||
(crypto.Requested(header) && !cfg.AllowEncrypted) {
|
||||
return true
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user