Browse Source

simplify

pull/7479/head
chrislu 3 weeks ago
parent
commit
d8519da411
  1. 4
      weed/s3api/s3_action_resolver.go

4
weed/s3api/s3_action_resolver.go

@ -262,9 +262,7 @@ func resolveObjectLevelAction(method string, baseAction string) string {
func resolveBucketLevelAction(method string, baseAction string) string { func resolveBucketLevelAction(method string, baseAction string) string {
switch method { switch method {
case http.MethodGet, http.MethodHead: case http.MethodGet, http.MethodHead:
if baseAction == s3_constants.ACTION_LIST {
return s3_constants.S3_ACTION_LIST_BUCKET
} else if baseAction == s3_constants.ACTION_READ {
if baseAction == s3_constants.ACTION_LIST || baseAction == s3_constants.ACTION_READ {
return s3_constants.S3_ACTION_LIST_BUCKET return s3_constants.S3_ACTION_LIST_BUCKET
} }

Loading…
Cancel
Save