rename s3 tag prefix.

This commit is contained in:
ruitao.liu 2020-10-27 17:33:24 +08:00
parent 19026ae55d
commit 8766ca1b95
2 changed files with 2 additions and 2 deletions

View file

@ -7,7 +7,7 @@ import (
)
const (
S3TAG_PREFIX = "s3-tag-"
S3TAG_PREFIX = "x-amz-tagging-"
)
func (s3a *S3ApiServer) getTags(parentDirectoryPath string, entryName string) (tags map[string]string, err error) {

View file

@ -97,7 +97,7 @@ 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, "s3-tag-") {
if strings.HasPrefix(k, "x-amz-tagging") {
tagCount++
}
}