S3 bucket list, response with uploaded storageclass.

This commit is contained in:
ruitao.liu
2020-10-29 14:57:19 +08:00
parent 2dcc178d0a
commit b917be7955
4 changed files with 157 additions and 14 deletions

View File

@@ -97,12 +97,12 @@ func (fs *FilerServer) GetOrHeadHandler(w http.ResponseWriter, r *http.Request,
if r.Method == "GET" {
tagCount := 0
for k, _ := range entry.Extended {
if strings.HasPrefix(k, "X-Amz-Tagging-") {
if strings.HasPrefix(k, util.AmzObjectTagging+"-") {
tagCount++
}
}
if tagCount > 0 {
w.Header().Set("x-amz-tag-count", strconv.Itoa(tagCount))
w.Header().Set(util.AmzTagCount, strconv.Itoa(tagCount))
}
}