prepare v4 (need swap target!) #195
Reference in New Issue
Block a user
No description provided.
Delete Branch "devstigneev/micro-server-grpc:prepare_v4"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Pull Request template
Please, go through these steps before clicking submit on this PR.
closes #XXXX
in your comment to auto-close the issue that your PR fixes (if applicable).PLEASE REMOVE THIS TEMPLATE BEFORE SUBMITTING
@@ -2,22 +2,21 @@ module go.unistack.org/micro-server-grpc/v3
v4
@@ -252,3 +247,3 @@
md := metadata.New(len(gmd))
for k, v := range gmd {
md[k] = strings.Join(v, ", ")
md[k] = v
make & copy
https://pkg.go.dev/maps#Copy
@@ -293,1 +285,4 @@
ct = ctype[0]
} else if ctype, ok := md.Get("x-content-type"); ok && len(ctype) > 0 {
ct = ctype[0]
md.Del("x-content-type")
x-content-type можно убирать вообще