From 1a5981d5830aff5ae488f3aaf0dbfc33cbee9ef2 Mon Sep 17 00:00:00 2001 From: Lapshin Vitaliy Date: Mon, 27 Jun 2022 18:46:21 +0300 Subject: [PATCH] fix test --- weed/s3api/tags.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/weed/s3api/tags.go b/weed/s3api/tags.go index 06c9e4b80..de65df2f9 100644 --- a/weed/s3api/tags.go +++ b/weed/s3api/tags.go @@ -42,7 +42,7 @@ func FromTags(tags map[string]string) (t *Tagging) { } func parseTagsHeader(tags string) (map[string]string, error) { - var parsedTags map[string]string + parsedTags := make(map[string]string) for _, v := range strings.Split(tags, "&") { tag := strings.Split(v, "=") if len(tag) == 2 { @@ -51,7 +51,7 @@ func parseTagsHeader(tags string) (map[string]string, error) { parsedTags[tag[0]] = "" } } - return nil, nil + return parsedTags, nil } func validateTags(tags map[string]string) error {