mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-07-15 20:00:47 +08:00
rename s3 tag prefix.
This commit is contained in:
parent
19026ae55d
commit
8766ca1b95
@ -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) {
|
||||
|
@ -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++
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user