minor
This commit is contained in:
@@ -52,7 +52,7 @@ func (m *Middleware) getCORSConfig(bucket string) (*CORSConfiguration, bool) {
|
||||
// No bucket config, proceed to fallback.
|
||||
case s3err.ErrNoSuchBucket:
|
||||
// Bucket doesn't exist, proceed to fallback.
|
||||
// This ensures we don't leak existence information and returning 403 vs 200.
|
||||
// This ensures we don't leak existence information by returning 403 vs 200.
|
||||
default:
|
||||
// Any other error means we should not proceed.
|
||||
return nil, false
|
||||
|
||||
Reference in New Issue
Block a user