aboutsummaryrefslogtreecommitdiff
path: root/weed/s3api/s3bucket/s3api_bucket.go
diff options
context:
space:
mode:
Diffstat (limited to 'weed/s3api/s3bucket/s3api_bucket.go')
-rw-r--r--weed/s3api/s3bucket/s3api_bucket.go4
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")