mirror of
https://github.com/pgsty/minio.git
synced 2026-07-21 05:00:22 +03:00
Bucket names can contain hyphen (#4324)
This commit is contained in:
committed by
Harshavardhana
parent
a767ad321a
commit
9d98bf1c0f
+1
-1
@@ -897,7 +897,7 @@ func toJSONError(err error, params ...string) (jerr *json2.Error) {
|
|||||||
case "InvalidBucketName":
|
case "InvalidBucketName":
|
||||||
if len(params) > 0 {
|
if len(params) > 0 {
|
||||||
jerr = &json2.Error{
|
jerr = &json2.Error{
|
||||||
Message: fmt.Sprintf("Bucket Name %s is invalid. Lowercase letters, period, numerals are the only allowed characters and should be minimum 3 characters in length.", params[0]),
|
Message: fmt.Sprintf("Bucket Name %s is invalid. Lowercase letters, period, hyphen, numerals are the only allowed characters and should be minimum 3 characters in length.", params[0]),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Bucket not found custom error message.
|
// Bucket not found custom error message.
|
||||||
|
|||||||
Reference in New Issue
Block a user