pull/1269/head
王真 3 years ago
parent 4f15df4caf
commit 8f55924c47
  1. 8
      metadata/metadata.go

@ -16,13 +16,7 @@ func New(mds ...map[string]string) Metadata {
md := Metadata{} md := Metadata{}
for _, m := range mds { for _, m := range mds {
for k, v := range m { for k, v := range m {
if k == "" { md.Set(k, v)
continue
}
key := strings.ToLower(k)
if v != "" {
md[key] = v
}
} }
} }
return md return md

Loading…
Cancel
Save