summaryrefslogtreecommitdiff
path: root/vendor/github.com/minio/minio-go/v7/bucket-cache.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/minio/minio-go/v7/bucket-cache.go')
-rw-r--r--vendor/github.com/minio/minio-go/v7/bucket-cache.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/vendor/github.com/minio/minio-go/v7/bucket-cache.go b/vendor/github.com/minio/minio-go/v7/bucket-cache.go
index e43b889b9..b41902f65 100644
--- a/vendor/github.com/minio/minio-go/v7/bucket-cache.go
+++ b/vendor/github.com/minio/minio-go/v7/bucket-cache.go
@@ -84,18 +84,18 @@ func processBucketLocationResponse(resp *http.Response, bucketName string) (buck
// request. Move forward and let the top level callers
// succeed if possible based on their policy.
switch errResp.Code {
- case "NotImplemented":
+ case NotImplemented:
switch errResp.Server {
case "AmazonSnowball":
return "snowball", nil
case "cloudflare":
return "us-east-1", nil
}
- case "AuthorizationHeaderMalformed":
+ case AuthorizationHeaderMalformed:
fallthrough
- case "InvalidRegion":
+ case InvalidRegion:
fallthrough
- case "AccessDenied":
+ case AccessDenied:
if errResp.Region == "" {
return "us-east-1", nil
}