mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-01-19 06:53:32 +08:00
Merge pull request #2828 from guo-sj/fix-tagging-error
Fix delete all "Seaweed-" prefixed tagging error
This commit is contained in:
commit
93615b2a49
@ -82,7 +82,9 @@ func (fs *FilerServer) DeleteTaggingHandler(w http.ResponseWriter, r *http.Reque
|
|||||||
toDelete := strings.Split(r.URL.Query().Get("tagging"), ",")
|
toDelete := strings.Split(r.URL.Query().Get("tagging"), ",")
|
||||||
deletions := make(map[string]struct{})
|
deletions := make(map[string]struct{})
|
||||||
for _, deletion := range toDelete {
|
for _, deletion := range toDelete {
|
||||||
deletions[deletion] = struct{}{}
|
if deletion != "" {
|
||||||
|
deletions[deletion] = struct{}{}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// delete all tags or specific tags
|
// delete all tags or specific tags
|
||||||
|
Loading…
Reference in New Issue
Block a user