From 72f6b77deae239cc324ce30a31bc672fcd419ca2 Mon Sep 17 00:00:00 2001 From: "ruitao.liu" Date: Tue, 27 Oct 2020 18:01:37 +0800 Subject: [PATCH] fix tag prefix. --- weed/server/filer_server_handlers_read.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/server/filer_server_handlers_read.go b/weed/server/filer_server_handlers_read.go index 1fb24369b..731bd3545 100644 --- a/weed/server/filer_server_handlers_read.go +++ b/weed/server/filer_server_handlers_read.go @@ -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, "x-amz-tagging") { + if strings.HasPrefix(k, "x-amz-tagging-") { tagCount++ } }