Browse Source
Merge pull request #2828 from guo-sj/fix-tagging-error
Fix delete all "Seaweed-" prefixed tagging error
pull/2831/head
Chris Lu
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
1 deletions
-
weed/server/filer_server_handlers_tagging.go
|
|
@ -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
|
|
|
|