diff --git a/weed/server/filer_server_handlers_tagging.go b/weed/server/filer_server_handlers_tagging.go index da6ecc638..ae2093947 100644 --- a/weed/server/filer_server_handlers_tagging.go +++ b/weed/server/filer_server_handlers_tagging.go @@ -81,8 +81,8 @@ func (fs *FilerServer) DeleteTaggingHandler(w http.ResponseWriter, r *http.Reque // parse out tags to be deleted toDelete := strings.Split(r.URL.Query().Get("tagging"), ",") deletions := make(map[string]struct{}) - if !(len(toDelete) == 1 && toDelete[0] == "") { - for _, deletion := range toDelete { + for _, deletion := range toDelete { + if deletion != "" { deletions[deletion] = struct{}{} } }