mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
fix test
This commit is contained in:
parent
d7c3493d15
commit
1a5981d583
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue