Merge pull request #2828 from guo-sj/fix-tagging-error

Fix delete all "Seaweed-" prefixed tagging error
This commit is contained in:
Chris Lu 2022-03-28 00:35:22 -07:00 committed by GitHub
commit 93615b2a49
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -82,7 +82,9 @@ func (fs *FilerServer) DeleteTaggingHandler(w http.ResponseWriter, r *http.Reque
toDelete := strings.Split(r.URL.Query().Get("tagging"), ",")
deletions := make(map[string]struct{})
for _, deletion := range toDelete {
deletions[deletion] = struct{}{}
if deletion != "" {
deletions[deletion] = struct{}{}
}
}
// delete all tags or specific tags