diff options
| author | chrislu <chris.lu@gmail.com> | 2022-04-20 09:40:24 -0700 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2022-04-20 09:40:24 -0700 |
| commit | 3aa4dc6ad5bbbb2eb79787345056a8fffecdc0c1 (patch) | |
| tree | ed635621b76a5be6259f671f8adefad8464db380 /weed/iamapi | |
| parent | 4792e07228382666c600fa338e254a35fc7b54d4 (diff) | |
| download | seaweedfs-3aa4dc6ad5bbbb2eb79787345056a8fffecdc0c1.tar.xz seaweedfs-3aa4dc6ad5bbbb2eb79787345056a8fffecdc0c1.zip | |
Revert "fix index out of range"
This reverts commit 4792e07228382666c600fa338e254a35fc7b54d4.
Diffstat (limited to 'weed/iamapi')
| -rw-r--r-- | weed/iamapi/iamapi_management_handlers.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/iamapi/iamapi_management_handlers.go b/weed/iamapi/iamapi_management_handlers.go index ff6fc4c61..5fea49f5c 100644 --- a/weed/iamapi/iamapi_management_handlers.go +++ b/weed/iamapi/iamapi_management_handlers.go @@ -382,7 +382,7 @@ func (iama *IamApiServer) DeleteAccessKey(s3cfg *iam_pb.S3ApiConfiguration, valu // "If you do not specify a user name, IAM determines the user name implicitly based on the Amazon Web // Services access key ID signing the request." func handleImplicitUsername(r *http.Request, values url.Values) { - if values.Get("UserName") == "" && len(r.Header["Authorization"]) > 0 { + if values.Get("UserName") == "" { // get username who signs the request userName := strings.Split(r.Header["Authorization"][0], "/")[2] values.Set("UserName", userName) |
