1
0
mirror of https://github.com/go-kratos/kratos.git synced 2025-03-17 21:07:54 +02:00
This commit is contained in:
王真 2021-07-28 14:03:05 +08:00
parent 4f15df4caf
commit 8f55924c47

View File

@ -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