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{}
for _, m := range mds {
for k, v := range m {
if k == "" {
continue
}
key := strings.ToLower(k)
if v != "" {
md[key] = v
}
md.Set(k, v)
}
}
return md

Loading…
Cancel
Save