mirror of
https://github.com/pgsty/minio.git
synced 2026-08-09 07:43:29 +03:00
Add proper router for handling putBucketACLHandler
This commit is contained in:
+4
-12
@@ -58,21 +58,13 @@ func getACLType(req *http.Request) ACLType {
|
||||
func getACLTypeString(acl ACLType) string {
|
||||
switch acl {
|
||||
case privateACLType:
|
||||
{
|
||||
return "private"
|
||||
}
|
||||
return "private"
|
||||
case publicReadACLType:
|
||||
{
|
||||
return "public-read"
|
||||
}
|
||||
return "public-read"
|
||||
case publicReadWriteACLType:
|
||||
{
|
||||
return "public-read-write"
|
||||
}
|
||||
return "public-read-write"
|
||||
case unsupportedACLType:
|
||||
{
|
||||
return ""
|
||||
}
|
||||
return ""
|
||||
default:
|
||||
return "private"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user