mirror of
https://github.com/minio/minio.git
synced 2025-11-20 01:50:24 -05:00
fix: allow S3 gateway passthrough for SSE-S3 header (#12020)
only in case of S3 gateway we have a case where we need to allow for SSE-S3 headers as passthrough, If SSE-C headers are passed then they are rejected if KMS is not configured.
This commit is contained in:
@@ -186,6 +186,12 @@ func IsNetworkOrHostDown(err error, expectTimeouts bool) bool {
|
||||
case strings.Contains(err.Error(), "connection timed out"):
|
||||
// If err is a net.Dial timeout.
|
||||
return true
|
||||
case strings.Contains(err.Error(), "connection reset by peer"):
|
||||
// IF err is a peer reset on a socket.
|
||||
return true
|
||||
case strings.Contains(err.Error(), "broken pipe"):
|
||||
// IF err is a broken pipe on a socket.
|
||||
return true
|
||||
case strings.Contains(strings.ToLower(err.Error()), "503 service unavailable"):
|
||||
// Denial errors
|
||||
return true
|
||||
|
||||
Reference in New Issue
Block a user