mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-30 00:40:44 +01:00
minor
This commit is contained in:
1 parent
7d788ae73c
commit
16c8aac7c9
1 file changed
+1
-1
@@ -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