mirror of
https://github.com/go-kratos/kratos.git
synced 2025-01-05 22:53:41 +02:00
commit
352d6c8d66
@ -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 len(v) > 0 && v != "" {
|
||||
md[key] = v
|
||||
}
|
||||
md.Set(k, v)
|
||||
}
|
||||
}
|
||||
return md
|
||||
|
Loading…
Reference in New Issue
Block a user