diff options
| author | chrislu <chris.lu@gmail.com> | 2023-02-07 15:00:41 -0800 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2023-02-07 15:00:41 -0800 |
| commit | 79d68a81fdee9ba62c8545d605bf87750033d771 (patch) | |
| tree | 507518cf20c1216de9044991148ba24b0f6de787 | |
| parent | 999a126a3ffd52cb93b4d47a231d443ce011b054 (diff) | |
| download | seaweedfs-79d68a81fdee9ba62c8545d605bf87750033d771.tar.xz seaweedfs-79d68a81fdee9ba62c8545d605bf87750033d771.zip | |
text change
| -rw-r--r-- | weed/s3api/s3bucket/s3api_bucket.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/s3api/s3bucket/s3api_bucket.go b/weed/s3api/s3bucket/s3api_bucket.go index 5f1f3e05b..4fab933d9 100644 --- a/weed/s3api/s3bucket/s3api_bucket.go +++ b/weed/s3api/s3bucket/s3api_bucket.go @@ -28,10 +28,10 @@ func VerifyS3BucketName(name string) (err error) { return fmt.Errorf("name must end with number or lower case character") } if strings.HasPrefix(name, "xn--") { - return fmt.Errorf("prefix xn-- is a reserved and not allowed in bucket prefix") + return fmt.Errorf("prefix xn-- is reserved and not allowed in bucket prefix") } if strings.HasSuffix(name, "-s3alias") { - return fmt.Errorf("suffix -s3alias is a reserved and not allowed in bucket suffix") + return fmt.Errorf("suffix -s3alias is reserved and not allowed in bucket suffix") } if net.ParseIP(name) != nil { return fmt.Errorf("bucket name cannot be ip addresses") |
