Bucket names can contain hyphen (#4324)

master
luomeiqin 8 years ago committed by Harshavardhana
parent a767ad321a
commit 9d98bf1c0f
  1. 2
      cmd/web-handlers.go

@ -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.

Loading…
Cancel
Save