feat: simplify a bit (#3905)

This commit is contained in:
famosss 2022-10-25 08:58:26 +08:00 committed by GitHub
parent 25e012d30b
commit 874fd197b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -420,7 +420,6 @@ func setUserMetadataKeyToLowercase(resp *http.Response) {
if strings.HasPrefix(key, s3_constants.AmzUserMetaPrefix) { if strings.HasPrefix(key, s3_constants.AmzUserMetaPrefix) {
resp.Header[strings.ToLower(key)] = value resp.Header[strings.ToLower(key)] = value
delete(resp.Header,key) delete(resp.Header,key)
continue
} }
} }
} }