|
@ -81,9 +81,11 @@ func (fs *FilerServer) DeleteTaggingHandler(w http.ResponseWriter, r *http.Reque |
|
|
// parse out tags to be deleted
|
|
|
// parse out tags to be deleted
|
|
|
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{}) |
|
|
|
|
|
if !(len(toDelete) == 1 && toDelete[0] == "") { |
|
|
for _, deletion := range toDelete { |
|
|
for _, deletion := range toDelete { |
|
|
deletions[deletion] = struct{}{} |
|
|
deletions[deletion] = struct{}{} |
|
|
} |
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
// delete all tags or specific tags
|
|
|
// delete all tags or specific tags
|
|
|
hasDeletion := false |
|
|
hasDeletion := false |
|
|