mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-09-19 12:09:23 +08:00
S3 bucket list, response with uploaded storageclass.
This commit is contained in:
@@ -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))
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user