From 9d98bf1c0fb83ccfcf368dec52b2d19b9195b8d4 Mon Sep 17 00:00:00 2001 From: luomeiqin Date: Fri, 19 May 2017 22:30:00 +0800 Subject: [PATCH] Bucket names can contain hyphen (#4324) --- cmd/web-handlers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/web-handlers.go b/cmd/web-handlers.go index 17a97a727..2bed40359 100644 --- a/cmd/web-handlers.go +++ b/cmd/web-handlers.go @@ -897,7 +897,7 @@ func toJSONError(err error, params ...string) (jerr *json2.Error) { case "InvalidBucketName": if len(params) > 0 { 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.