mirror of
https://github.com/minio/minio.git
synced 2025-11-20 18:06:10 -05:00
make SSE request header check comprehensive (#8276)
This commit refactors the SSE header check by moving it into the `crypto` package, adds a unit test for it and makes the check comprehensive.
This commit is contained in:
committed by
kannappanr
parent
4780fa5a58
commit
2b51fe9f26
@@ -354,7 +354,7 @@ func (o ObjectInfo) GetActualSize() int64 {
|
||||
// Using compression and encryption together enables room for side channel attacks.
|
||||
// Eliminate non-compressible objects by extensions/content-types.
|
||||
func isCompressible(header http.Header, object string) bool {
|
||||
if hasServerSideEncryptionHeader(header) || excludeForCompression(header, object) {
|
||||
if crypto.IsRequested(header) || excludeForCompression(header, object) {
|
||||
return false
|
||||
}
|
||||
return true
|
||||
|
||||
Reference in New Issue
Block a user